jim 98/03/11 13:06:06
Modified: src Configure Log: Submitted by: Jim Jagielski If Configuration.tmpl is more recent that Configuration, Configure will now complain. Revision Changes Path 1.203 +17 -1 apache-1.3/src/Configure Index: Configure =================================================================== RCS file: /export/home/cvs/apache-1.3/src/Configure,v retrieving revision 1.202 retrieving revision 1.203 diff -u -r1.202 -r1.203 --- Configure 1998/03/11 09:57:25 1.202 +++ Configure 1998/03/11 21:06:05 1.203 @@ -46,7 +46,6 @@ shift 1 fi done -echo "Using config file: $file" if [ ! -r $file ]; then echo "Can't see or read \"$file\"" @@ -55,6 +54,23 @@ exitcode=1 exit 1 fi + +# +# Now see if Configuration.tmpl is more recent than $file. If +# so, then we complain and bail out +# + +if ls -lt Configuration.tmpl $file | head -1 | \ + grep 'Configuration.tmpl' > /dev/null +then + echo "Configuration.tmpl is more recent than $file;" + echo "Make sure that $file is valid and, if it is, simply" + echo "'touch $file' and re-run $0 again." + exitcode=1 + exit 1 +fi + +echo "Using config file: $file" #################################################################### ## From the Configuration file, create a "cleaned-up" version