* autoreconf.sh (autoheader): Run it when there is no template, as

there is no risk to override a handwritten template.
From Assar Westerlund.
This commit is contained in:
Akim Demaille 2001-01-26 14:42:14 +00:00
parent 9d4187c855
commit 88d2fd8441
4 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2001-01-26 Akim Demaille <akim@epita.fr>
* autoreconf.sh (autoheader): Run it when there is no template, as
there is no risk to override a handwritten template.
From Assar Westerlund.
2001-01-26 Akim Demaille <akim@epita.fr>
* aclang.m4: dnl AC_ARG_VAR's newline.

View File

@ -385,9 +385,13 @@ while read dir; do
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
uses_autoheader=false;
# If config.hin exists, don't override it unless it was really
# created by autoheader (users are allowed to write them by hand!).
uses_autoheader=false
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
test -f "$template" ||
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
$update $template \

View File

@ -385,9 +385,13 @@ while read dir; do
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
uses_autoheader=false;
# If config.hin exists, don't override it unless it was really
# created by autoheader (users are allowed to write them by hand!).
uses_autoheader=false
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
test -f "$template" ||
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
$update $template \

View File

@ -385,9 +385,13 @@ while read dir; do
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
uses_autoheader=false;
# If config.hin exists, don't override it unless it was really
# created by autoheader (users are allowed to write them by hand!).
uses_autoheader=false
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
test -f "$template" ||
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
$update $template \