]> granicus.if.org Git - php/commitdiff
proper patch to cvsclean for bad autoconf.
authorJames Cox <imajes@php.net>
Sat, 20 Jul 2002 16:40:14 +0000 (16:40 +0000)
committerJames Cox <imajes@php.net>
Sat, 20 Jul 2002 16:40:14 +0000 (16:40 +0000)
buildconf

index fafd5dcc22e8a0ec2b1d540b77c1c21fcd46b58d..d07947d7a9e123b8157b7a4a7ac6edfd3cd54848 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -1,6 +1,14 @@
 #!/bin/sh
 # $Id$
 
+acv=`autoconf --version | grep GNU |cut -d ' ' -f 4`     
+res=`expr $acv '>=' 2.5`
+
+if test $res = 1; then
+    echo "cleaning checkout to force rebuild, due to bad autoconf"
+    ./cvsclean
+fi
+
 while test $# -gt 0; do
     if test "$1" = "--copy"; then
         automake_flags=--copy