]> granicus.if.org Git - php/commitdiff
Change cmp'risons to be cross-shell compatible.
authorAndrey Hristov <andrey@php.net>
Sat, 24 Apr 1999 21:21:35 +0000 (21:21 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 24 Apr 1999 21:21:35 +0000 (21:21 +0000)
configure.in.in
scripts/preconfig

index baa390efa1d4df9c7003b448636cb58cdc1c83fd..94ef912e2cec6d72ca6cfad8c39a0876490d8967 100644 (file)
@@ -43,7 +43,8 @@ AM_INIT_AUTOMAKE(php, 4.0pa1)
 
 PHP_VERSION=$VERSION
 echo "#define PHP_VERSION \"$PHP_VERSION\"" > php_version.h.new
-if ! cmp php_version.h.new php_version.h >/dev/null; then
+cmp php_version.h.new php_version.h >/dev/null
+if test $? -ne 0 ; then
     rm -f php_version.h && mv php_version.h.new php_version.h && \
     echo 'Updated php_version.h'
 else
index dbba3147c3b3985efccbfd5b559207558b4b2b88..a1af801e8b5ab8761de42db2b5cc1a8797012d7b 100755 (executable)
@@ -4,7 +4,8 @@
 
 makefiles=`echo ext/*/Makefile.am | sed -e 's/\.am//g'`
 sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in.new
-if ! cmp configure.in configure.in.new > /dev/null 2>&1; then
+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
@@ -17,7 +18,8 @@ if test "$confighfiles" != "ext/*/config.h.stub"; then
        cat $file >> acconfig.h.new
     done
 fi
-if ! cmp acconfig.h acconfig.h.new > /dev/null 2>&1; then
+cmp acconfig.h acconfig.h.new > /dev/null 2>&1
+if test $? -ne 0 ; then
     mv acconfig.h.new acconfig.h
 else
     rm -f acconfig.h.new