Add help to get people started.
authorSascha Schumann <sas@php.net>
Thu, 7 Oct 1999 19:53:20 +0000 (19:53 +0000)
committerSascha Schumann <sas@php.net>
Thu, 7 Oct 1999 19:53:20 +0000 (19:53 +0000)
ext/ext_skel

index 95c40171d6692b7097a08ab914d3528e08d6088e..70af96d8cd5acb9afef5ddfecee574a7efb0b5be 100755 (executable)
@@ -16,6 +16,8 @@ if test -d "$extname" ; then
        givup "Directory $extname already exists."
 fi
 
+test -f ext_skel || givup "ext_skel must be in the current directory"
+
 if echo '\c' | grep -s c >/dev/null 2>&1
 then
     ECHO_N="echo -n"
@@ -40,6 +42,8 @@ dnl \$Id\$
 dnl config.m4 for extension $extname
 dnl don't forget to call PHP_EXTENSION($extname)
 
+PHP_EXTENSION($extname)
+
 eof
 
 $ECHO_N " Makefile.am$ECHO_C"
@@ -58,6 +62,7 @@ cat >.cvsignore <<eof
 .deps
 Makefile.in
 Makefile
+*.o
 *.lo
 *.la
 .libs
@@ -73,3 +78,16 @@ chmod 644 *
 
 echo " [done]."
 
+cat <<eof
+
+To use your new extension, you will have to execute the following steps:
+
+    $ cd ..
+    $ ./buildconf
+    $ ./configure                 (your extension is automatically enabled)
+    $ vi ext/$extname/$extname.c
+    $ make
+
+Repeat the last two steps as often as necessary.
+
+eof