diff options
author | Sascha Schumann <sas@php.net> | 1999-10-07 19:53:20 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-10-07 19:53:20 +0000 |
commit | 36ff78d2322707393c7b47a8d086293ea8f08527 (patch) | |
tree | 96ca5e2834c63a0851123b1a2b6880ac8825bc83 /ext/ext_skel | |
parent | 6cd07c51656991b36ad5b9c5abe9aa4a366f8483 (diff) | |
download | php-git-36ff78d2322707393c7b47a8d086293ea8f08527.tar.gz |
Add help to get people started.
Diffstat (limited to 'ext/ext_skel')
-rwxr-xr-x | ext/ext_skel | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/ext_skel b/ext/ext_skel index 95c40171d6..70af96d8cd 100755 --- a/ext/ext_skel +++ b/ext/ext_skel @@ -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 |