1 diff -Naur php-4.1.2.orig/ext/ext_skel php-4.1.2/ext/ext_skel
2 --- php-4.1.2.orig/ext/ext_skel Fri May 31 11:10:30 2002
3 +++ php-4.1.2/ext/ext_skel Fri May 31 11:52:10 2002
5 givup "Directory $extname already exists."
8 -test -f ext_skel || givup "ext_skel must be in the current directory"
9 -test -d skeleton || givup "subdirectory skeleton does not exist or is not directory"
10 +#test -f ext_skel || givup "ext_skel must be in the current directory"
11 +test -d /usr/include/php/ext/skeleton || givup "/usr/include/php/ext/skeleton does not exist or is not directory"
13 if echo '\c' | grep -s c >/dev/null 2>&1
18 if test -n "$proto"; then
19 - cat $proto | awk -v extname=$extname -v stubs=$stubs -v stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -f ./skeleton/create_stubs
20 + cat $proto | awk -v extname=$extname -v stubs=$stubs -v stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -f /usr/include/php/ext/skeleton/create_stubs
23 if test -z "$stubs"; then
25 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript
28 -sed -f sedscript <../skeleton/skeleton.c > $extname.c
29 +sed -f sedscript </usr/include/php/ext/skeleton/skeleton.c > $extname.c
32 $ECHO_N " php_$extname.h$ECHO_C"
34 echo 's/^\/\*.*\*\/$//' >> sedscript
35 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript
37 -sed -f sedscript <../skeleton/php_skeleton.h > php_$extname.h
38 +sed -f sedscript </usr/include/php/ext/skeleton/php_skeleton.h > php_$extname.h
40 $ECHO_N " CREDITS$ECHO_C"
41 echo "s/extname/$extname/g" > sedscript
42 -sed -f sedscript <../skeleton/CREDITS > CREDITS
43 +sed -f sedscript </usr/include/php/ext/skeleton/CREDITS > CREDITS
45 $ECHO_N " EXPERIMENTAL$ECHO_C"
46 echo "s/extname/$extname/g" > sedscript
47 -sed -f sedscript <../skeleton/EXPERIMENTAL > EXPERIMENTAL
48 +sed -f sedscript </usr/include/php/ext/skeleton/EXPERIMENTAL > EXPERIMENTAL
50 $ECHO_N " tests/001.phpt$ECHO_C"
51 mkdir tests || givup "Cannot create tests directory"
53 -sed -f sedscript <../skeleton/tests/001.phpt > tests/001.phpt
54 +sed -f sedscript </usr/include/php/ext/skeleton/tests/001.phpt > tests/001.phpt
56 if test -z "$stubs" && test -z "$no_help"; then
57 $ECHO_N " $extname.php$ECHO_C"
59 -e "s/extname/$extname/g" \
60 - <../skeleton/skeleton.php \
61 + </usr/include/php/ext/skeleton/skeleton.php \
65 diff -Naur php-4.1.2.orig/ext/skeleton/create_stubs php-4.1.2/ext/skeleton/create_stubs
66 --- php-4.1.2.orig/ext/skeleton/create_stubs Fri May 31 11:50:08 2002
67 +++ php-4.1.2/ext/skeleton/create_stubs Fri May 31 11:52:00 2002