diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/preconfig | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/preconfig b/scripts/preconfig index 4813fb2687..95068a03c8 100755 --- a/scripts/preconfig +++ b/scripts/preconfig @@ -5,22 +5,11 @@ disclaimer="Do NOT edit - this file is generated by preconfig" # security check - simply overwriting existing files could be harmful -if test -w configure.in.new || test -w acconfig.h.new ; then - echo "Please remove the *.new files and rerun this command" +if test -w acconfig.h.new ; then + echo "Please remove acconfig.h.new and rerun this command" exit 1 fi -makefileams=`find ext sapi -name Makefile.am -print | sort` -makefiles=`echo $makefileams | sed -e 's/\.am//g'` -echo "dnl $disclaimer" > configure.in.new -sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in >> configure.in.new -cmp configure.in configure.in.new > /dev/null 2>&1 -if test $? -ne 0 ; then - mv configure.in.new configure.in -else - rm -f configure.in.new -fi - echo "/* $disclaimer */" > acconfig.h.new cat acconfig.h.in >> acconfig.h.new confighfiles=`echo ext/*/config.h.stub` |