Rename *.template to *.in

Apparently the `.template` extension is commonly used in macOS for a
word processor template file.

See issue #206.
This commit is contained in:
Richard Hansen 2020-06-30 13:27:08 -04:00
parent 5e7683df85
commit 44eaf653f1
4 changed files with 7 additions and 7 deletions

View file

@ -32,23 +32,23 @@ subst = sed \
-e 's|@runstatedir[@]|$(runstatedir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g'
# Files that will be generated by passing their *.template file
# through $(subst).
# Files that will be generated by passing their *.in file through
# $(subst).
subst_files = ddclient ddclient.conf
EXTRA_DIST += $(subst_files:=.template)
EXTRA_DIST += $(subst_files:=.in)
CLEANFILES += $(subst_files)
$(subst_files): Makefile
rm -f '$@' '$@'.tmp
in='$@'.template; \
in='$@'.in; \
test -f "$${in}" || in='$(srcdir)/'$${in}; \
$(subst) "$${in}" >'$@'.tmp && \
{ ! test -x "$${in}" || chmod +x '$@'.tmp; }
mv '$@'.tmp '$@'
ddclient: $(srcdir)/ddclient.template
ddclient.conf: $(srcdir)/ddclient.conf.template
ddclient: $(srcdir)/ddclient.in
ddclient.conf: $(srcdir)/ddclient.conf.in
bin_SCRIPTS = ddclient

View file

@ -1,6 +1,6 @@
AC_PREREQ([2.63])
AC_INIT([ddclient], [3.9.1])
AC_CONFIG_SRCDIR([ddclient.template])
AC_CONFIG_SRCDIR([ddclient.in])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_REQUIRE_AUX_FILE([tap-driver.sh])