summaryrefslogtreecommitdiff
path: root/ext/ext_skel
diff options
context:
space:
mode:
authorJouni Ahto <jah@php.net>2000-06-10 05:47:22 +0000
committerJouni Ahto <jah@php.net>2000-06-10 05:47:22 +0000
commitf3c1222da3284bbbc7e2ce26af2dd2470cec4a59 (patch)
tree20c75b0933ffc30a867ff93c2a4a50abd8db9b0d /ext/ext_skel
parentb54f9152800f3e80ead28c58920992410a64dd90 (diff)
downloadphp-git-f3c1222da3284bbbc7e2ce26af2dd2470cec4a59.tar.gz
- Fix typos, add default case to switch and other small things.
Diffstat (limited to 'ext/ext_skel')
-rwxr-xr-xext/ext_skel21
1 files changed, 14 insertions, 7 deletions
diff --git a/ext/ext_skel b/ext/ext_skel
index 3fc90dc12a..71b8335728 100755
--- a/ext/ext_skel
+++ b/ext/ext_skel
@@ -32,19 +32,18 @@ else
ECHO_C='\c'
fi
-ECHO_E="echo -e" # Any portability problems? If, how to test.
-
echo "Creating directory"
mkdir $extname || givup "Cannot create directory $extname"
-cd $extname
-chmod 755 .
-
if [ ! -z $functions ]; then
- cat $functions | awk -f ../skeleton/create_stubs
+ echo $functions
+ cat $functions | awk -v extname=$extname -f ./skeleton/create_stubs
fi
+cd $extname
+chmod 755 .
+
$ECHO_N "Creating basic files:$ECHO_C"
$ECHO_N " config.m4$ECHO_C"
@@ -129,6 +128,14 @@ if [ ! -z $functions ]; then
rm function_entries
rm function_declarations
rm function_stubs
+ if [ -f function_warning ]; then
+ rm function_warning
+ warning="
+NOTE! Because some arguments to functions were resources, the code generated
+cannot yet be compiled without editing. Please consider this to be step 4.5
+in the instructions above.
+"
+ fi
fi
chmod 644 *
@@ -151,5 +158,5 @@ To use your new extension, you will have to execute the following steps:
Repeat steps 3-6 until you are satisfied with ext/$extname/config.m4 and
step 6 confirms that your module is compiled in PHP. Then, start writing
code and repeat the last two steps as often as necessary.
-
+$warning
eof