[PHP4BETA] CVS update: php4/scripts

From: Date: Sat, 24 Apr 1999 22:16:06 +0000
Subject: [PHP4BETA] CVS update: php4/scripts
Groups: php.version4 
Request: Send a blank email to php-version4+get-497@lists.php.net to get a copy of this message
Date: Saturday April 24, 1999 @ 18:16 Author: sas Update of /repository/php4/scripts In directory php:/tmp/cvs-serv6706/scripts Modified Files: preconfig Log Message: security check and disclaimer for generated files Index: php4/scripts/preconfig diff -u php4/scripts/preconfig:1.5 php4/scripts/preconfig:1.6 --- php4/scripts/preconfig:1.5 Sat Apr 24 17:21:35 1999 +++ php4/scripts/preconfig Sat Apr 24 18:16:06 1999 @@ -1,9 +1,18 @@ #!/bin/sh # -# $Id: preconfig,v 1.5 1999/04/24 21:21:35 andrey Exp $ +# $Id: preconfig,v 1.6 1999/04/24 22:16:06 sas Exp $ +disclaimer="Do NOT edit - this file is generated by preconfig" + +# security check - simply overwriting existing files could be harmful +if test -e configure.in.new || test -e acconfig.h.new ; then + echo "Please remove the *.new files and rerun this command" + exit 1 +fi + makefiles=echo ext/*/Makefile.am | sed -e 's/\.am//g' -sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in.new +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 @@ -11,7 +20,8 @@ rm -f configure.in.new fi -cat acconfig.h.in > acconfig.h.new +echo "/* $disclaimer */" > acconfig.h.new +cat acconfig.h.in >> acconfig.h.new confighfiles=echo ext/*/config.h.stub if test "$confighfiles" != "ext/*/config.h.stub"; then for file in $confighfiles; do -- PHP 4 Beta

« previous php.version4 (#497) next »