]> granicus.if.org Git - php/commitdiff
Make it portable.
authorAndrey Hristov <andrey@php.net>
Mon, 27 Sep 1999 14:05:18 +0000 (14:05 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 27 Sep 1999 14:05:18 +0000 (14:05 +0000)
ext/ext_skel

index 30ea4fafd96f1be75dd7f8d0427745a1ebd05b95..bbcadb3478bb543d2d4a3ea8495ea3fbda7649c2 100755 (executable)
@@ -3,7 +3,7 @@
 extname="$1"
 EXTNAME=`echo $1|tr a-z A-Z`
 
-function givup() {
+givup() {
        echo $*
        exit 1
 }
@@ -23,9 +23,9 @@ mkdir $extname || givup "Cannot create directory $extname"
 cd $extname
 chmod 755 .
 
-echo -n "Creating basic files:"
+echo "Creating basic files:\c"
 
-echo -n " config.m4"
+echo " config.m4\c"
 cat >config.m4 <<eof
 dnl \$Id\$
 dnl config.m4 for extension $extname
@@ -33,17 +33,7 @@ dnl don't forget to call PHP_EXTENSION($extname)
 
 eof
 
-echo -n " setup.stub"
-cat >setup.stub <<eof
-# \$Source\$
-# \$Id\$
-
-define_option with-$extname '$extname support?' yesnodir no \\
-'    Whether to build the $extname extension.'
-       
-eof
-
-echo -n " Makefile.am"
+echo " Makefile.am\c"
 cat >Makefile.am <<eof
 # \$Id\$
 
@@ -54,14 +44,14 @@ libphpext_${extname}_a_SOURCES=$extname.c
 eof
 
 
-echo -n " .cvsignore"
+echo " .cvsignore\c"
 cat >.cvsignore <<eof
 .deps
 Makefile.in
 Makefile
 eof
 
-echo -n " config.h.stub"
+echo " config.h.stub\c"
 cat >config.h.stub<<eof
 /* define if you want to use the $extname extension */
 /* #undef HAVE_LIB$EXTNAME */