[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.status shouldn't delete files it can't recreate
From: |
Ben Pfaff |
Subject: |
config.status shouldn't delete files it can't recreate |
Date: |
11 Dec 2003 19:41:49 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
In Autoconf 2.58 (at least), "./config.status --file=foo" deletes
foo regardless of whether foo.in exists. It is easy to fix by
doing the deletion after the check for the input file:
--- autoconf-2.58.orig/lib/autoconf/status.m4
+++ autoconf-2.58/lib/autoconf/status.m4
@@ -955,10 +959,6 @@
esac
])dnl
- if test x"$ac_file" != x-; then
- AC_MSG_NOTICE([creating $ac_file])
- rm -f "$ac_file"
- fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
@@ -993,6 +993,11 @@
fi;;
esac
done` || AS_EXIT([1])
+
+ if test x"$ac_file" != x-; then
+ AC_MSG_NOTICE([creating $ac_file])
+ rm -f "$ac_file"
+ fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
dnl Neutralize VPATH when `$srcdir' = `.'.
--
"Ho ho ho. I _so_ enjoy making a fool out of myself."
--Linus, on Christmas Day, 2000
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- config.status shouldn't delete files it can't recreate,
Ben Pfaff <=