]> git.pld-linux.org Git - packages/php.git/blame - php-build_modules.patch
.
[packages/php.git] / php-build_modules.patch
CommitLineData
07ec6a91 1diff -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
4@@ -65,8 +65,8 @@
5 givup "Directory $extname already exists."
6 fi
7
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"
12
13 if echo '\c' | grep -s c >/dev/null 2>&1
14 then
15@@ -84,7 +84,7 @@
16 fi
17
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
21 fi
22
23 if test -z "$stubs"; then
24@@ -198,7 +198,7 @@
25 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript
26 fi
27
28-sed -f sedscript <../skeleton/skeleton.c > $extname.c
29+sed -f sedscript </usr/include/php/ext/skeleton/skeleton.c > $extname.c
30
31
32 $ECHO_N " php_$extname.h$ECHO_C"
33@@ -216,26 +216,26 @@
34 echo 's/^\/\*.*\*\/$//' >> sedscript
35 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D' >> sedscript
36 fi
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
39
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
44
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
49
50 $ECHO_N " tests/001.phpt$ECHO_C"
51 mkdir tests || givup "Cannot create tests directory"
52 chmod 755 tests
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
55
56 if test -z "$stubs" && test -z "$no_help"; then
57 $ECHO_N " $extname.php$ECHO_C"
58 sed \
59 -e "s/extname/$extname/g" \
60- <../skeleton/skeleton.php \
61+ </usr/include/php/ext/skeleton/skeleton.php \
62 > $extname.php
63 fi
64
65diff -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
68@@ -1,4 +1,4 @@
69-#!/usr/bin/awk -f
70+#!/bin/awk -f
71
72 function gobble(s, x)
73 {
This page took 0.036421 seconds and 4 git commands to generate.