diff options
author | foobar <sniper@php.net> | 2003-07-01 16:20:53 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-07-01 16:20:53 +0000 |
commit | 986b654098ad941fbb6ceec435e1b51e755b2dd2 (patch) | |
tree | 4e436dffd7d3b787ff04c65af5c18cc63b1cef9e | |
parent | ef7c1af78d05d9124023881ae24acfba3fd289fc (diff) | |
download | php-git-986b654098ad941fbb6ceec435e1b51e755b2dd2.tar.gz |
MFH
-rw-r--r-- | scripts/phpize.in | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/scripts/phpize.in b/scripts/phpize.in index 83d60b7c08..a9aacbc0ff 100644 --- a/scripts/phpize.in +++ b/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 |