sniper          Tue Jul  1 11:55:09 2003 EDT

  Modified files:              
    /php-src/scripts    phpize.in 
  Log:
  Added --help to phpize
  
Index: php-src/scripts/phpize.in
diff -u php-src/scripts/phpize.in:1.3 php-src/scripts/phpize.in:1.4
--- php-src/scripts/phpize.in:1.3       Mon Jun 16 17:44:29 2003
+++ php-src/scripts/phpize.in   Tue Jul  1 11:55:09 2003
@@ -12,20 +12,28 @@
        aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \
        config.log config.status Makefile Makefile.fragments Makefile.objects"
 
-if test ! -r config.m4; then
+# Sanity check
+if test ! -r config.m4 && test "$1" != "--help"; then
   echo "Cannot find config.m4. "
   echo "Make sure that you run $0 in the top level source directory of the module"
   exit 1
 fi
 
-# Cleanup
-if test "$1" = "--clean"; then
-  echo "Cleaning.."
-  for i in $CLEAN_FILES; do
-    test -e && rm -rf $i
-  done
-  exit 0
-fi
+# Usage
+case "$args" in 
+  --clean)
+    # Cleanup
+    echo "Cleaning.."
+    for i in $CLEAN_FILES; do
+      test -e $i && rm -rf $i
+    done
+    exit 0
+    ;;
+  --help)
+    echo "Usage: $0 [--clean|--help]"
+    exit 1
+    ;;
+esac
 
 test -d build || mkdir build
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to