From 07ec6a9172d8ea94740c4cf0dd65328b997453fb Mon Sep 17 00:00:00 2001 From: radzio Date: Fri, 31 May 2002 13:45:21 +0000 Subject: [PATCH] . Changed files: php-build_modules.patch -> 1.1 --- php-build_modules.patch | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 php-build_modules.patch diff --git a/php-build_modules.patch b/php-build_modules.patch new file mode 100644 index 0000000..7119765 --- /dev/null +++ b/php-build_modules.patch @@ -0,0 +1,73 @@ +diff -Naur php-4.1.2.orig/ext/ext_skel php-4.1.2/ext/ext_skel +--- php-4.1.2.orig/ext/ext_skel Fri May 31 11:10:30 2002 ++++ php-4.1.2/ext/ext_skel Fri May 31 11:52:10 2002 +@@ -65,8 +65,8 @@ + givup "Directory $extname already exists." + fi + +-test -f ext_skel || givup "ext_skel must be in the current directory" +-test -d skeleton || givup "subdirectory skeleton does not exist or is not directory" ++#test -f ext_skel || givup "ext_skel must be in the current directory" ++test -d /usr/include/php/ext/skeleton || givup "/usr/include/php/ext/skeleton does not exist or is not directory" + + if echo '\c' | grep -s c >/dev/null 2>&1 + then +@@ -84,7 +84,7 @@ + fi + + if test -n "$proto"; then +- 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 ++ 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 + fi + + if test -z "$stubs"; then +@@ -198,7 +198,7 @@ + echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript + fi + +-sed -f sedscript <../skeleton/skeleton.c > $extname.c ++sed -f sedscript $extname.c + + + $ECHO_N " php_$extname.h$ECHO_C" +@@ -216,26 +216,26 @@ + echo 's/^\/\*.*\*\/$//' >> sedscript + echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript + fi +-sed -f sedscript <../skeleton/php_skeleton.h > php_$extname.h ++sed -f sedscript php_$extname.h + + $ECHO_N " CREDITS$ECHO_C" + echo "s/extname/$extname/g" > sedscript +-sed -f sedscript <../skeleton/CREDITS > CREDITS ++sed -f sedscript CREDITS + + $ECHO_N " EXPERIMENTAL$ECHO_C" + echo "s/extname/$extname/g" > sedscript +-sed -f sedscript <../skeleton/EXPERIMENTAL > EXPERIMENTAL ++sed -f sedscript EXPERIMENTAL + + $ECHO_N " tests/001.phpt$ECHO_C" + mkdir tests || givup "Cannot create tests directory" + chmod 755 tests +-sed -f sedscript <../skeleton/tests/001.phpt > tests/001.phpt ++sed -f sedscript tests/001.phpt + + if test -z "$stubs" && test -z "$no_help"; then + $ECHO_N " $extname.php$ECHO_C" + sed \ + -e "s/extname/$extname/g" \ +- <../skeleton/skeleton.php \ ++ $extname.php + fi + +diff -Naur php-4.1.2.orig/ext/skeleton/create_stubs php-4.1.2/ext/skeleton/create_stubs +--- php-4.1.2.orig/ext/skeleton/create_stubs Fri May 31 11:50:08 2002 ++++ php-4.1.2/ext/skeleton/create_stubs Fri May 31 11:52:00 2002 +@@ -1,4 +1,4 @@ +-#!/usr/bin/awk -f ++#!/bin/awk -f + + function gobble(s, x) + { -- 2.44.0