Skip to content
Browse files

Fix previous commit. (never do 2 things same time :)

  • Loading branch information...
1 parent 82194d2 commit f6cafd6041b9598d889dc38702ea3ea02bb476b1 foobar committed Jul 1, 2003
Showing with 23 additions and 15 deletions.
  1. +23 −15 scripts/phpize.in
View
38 scripts/phpize.in
@@ -12,27 +12,35 @@ CLEAN_FILES="$FILES *.lo *.la *.o .deps .libs/ build/ include/ modules/ install-
aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \
config.log config.status Makefile Makefile.fragments Makefile.objects"
-# 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
-
-# Usage
-case "$args" in
+case "$1" in
+ # Cleanup
--clean)
- # Cleanup
- echo "Cleaning.."
- for i in $CLEAN_FILES; do
- test -e $i && rm -rf $i
- done
- exit 0
+ if test -r config.m4; then
+ echo "Cleaning.."
+ for i in $CLEAN_FILES; do
+ test -e $i && rm -rf $i
+ done
+ exit 0
+ else
+ echo "Cannot find config.m4. "
+ echo "Make sure that you run '$0 --clean' in the top level source directory of the module"
+ echo
+ exit 1
+ fi
;;
+ # Usage
--help)
echo "Usage: $0 [--clean|--help]"
exit 1
;;
+ *)
+ if test ! -r config.m4; then
+ echo "Cannot find config.m4. "
+ echo "Make sure that you run '$0' in the top level source directory of the module"
+ echo
+ exit 1
+ fi
+ ;;
esac
test -d build || mkdir build

0 comments on commit f6cafd6

Please sign in to comment.
Something went wrong with that request. Please try again.