File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /phpext_ / {
2+ if (old_filename != FILENAME ) {
3+ printf " #include \" " FILENAME " \"\\\\ n"
4+ old_filename = FILENAME
5+ }
6+ }
Original file line number Diff line number Diff line change @@ -865,7 +865,7 @@ if test -n "\$REDO_ALL"; then
865865 echo "creating main/internal_functions.c"
866866 extensions=\` grep '^s.@EXT_STATIC@' \$ 0|sed -e 's/^.*@% *//' -e 's/%.*$//'\`
867867dnl mv -f main/internal_functions.c main/internal_functions.c.old 2>/dev/null
868- sh $srcdir /genif.sh $srcdir /main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS " \$ extensions > main/internal_functions.c
868+ sh $srcdir /genif.sh $srcdir /main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS " $AWK \$ extensions > main/internal_functions.c
869869dnl if cmp main/internal_functions.c.old main/internal_functions.c > /dev/null 2>&1; then
870870dnl echo "main/internal_functions.c is unchanged"
871871dnl mv main/internal_functions.c.old main/internal_functions.c
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # $Id: genif.sh,v 1.9 2000-06-27 16:22:26 sas Exp $
3+ # $Id: genif.sh,v 1.10 2000-12-20 16:29:07 sas Exp $
44# replacement for genif.pl
55
66infile=" $1 "
@@ -9,27 +9,26 @@ srcdir="$1"
99shift
1010extra_module_ptrs=" $1 "
1111shift
12+ awk=" $1 "
13+ shift
1214
1315if test " $infile " = " " -o " $srcdir " = " " ; then
1416 echo " please supply infile and srcdir"
1517 exit 1
1618fi
1719
1820module_ptrs=" $extra_module_ptrs "
19- includes=" "
20-
21+ header_list=" "
2122olddir=` pwd`
2223cd $srcdir
2324
2425for ext in ${1+" $@ " } ; do
2526 module_ptrs=" phpext_${ext} _ptr,\\ \n$module_ptrs "
26- for header in ext/$ext /* .h ; do
27- if grep phpext_ $header > /dev/null 2>&1 ; then
28- includes=" #include \" $header \"\\ \n$includes "
29- fi
30- done
27+ header_list=" $header_list ext/$ext /*.h"
3128done
3229
30+ includes=` $awk -f $srcdir /build/print_include.awk $header_list `
31+
3332cd $olddir
3433
3534cat $infile | \
You can’t perform that action at this time.
0 commit comments