Re: [PHP4BETA] setup

From: Date: Sat, 24 Apr 1999 20:03:56 +0000
Subject: Re: [PHP4BETA] setup
References: 1 2 3 4 5  Groups: php.version4 
Request: Send a blank email to php-version4+get-474@lists.php.net to get a copy of this message
I figured out why preconfig didn't work as intended. if ! cmp configure.in.in configure.in.new > /dev/null 2>&1; then mv configure.in.new configure.in else rm -f configure.in.new fi This test didn't work on my system (Solaris 2.7). So I changed it to: cmp configure.in.in configure.in.new > /dev/null 2>&1 if [ $? -ne 0 ]; then mv configure.in.new configure.in else rm -f configure.in.new fi And it worked. Was this script written on a Linux box? If yes, then I think /bin/sh on Linux is a symlink to bash so it may work there. Should this script be modified so it's portable on every sh? I can submit a patch if Stig doesn't mind. -Andrey * Anything will fit if you push hard enough * -- PHP 4 Beta

« previous php.version4 (#474) next »