summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-03-30 14:02:20 +0000
committerSascha Schumann <sas@php.net>2001-03-30 14:02:20 +0000
commit8d5af8cb464f690190805d2058bb0472dcc3e843 (patch)
tree7a34abf6652c2931849608f4eb6ff18aaf406d41 /build
parent2a7b87a162074f829440e0e6bc7aa26299ce9c9e (diff)
downloadphp-git-8d5af8cb464f690190805d2058bb0472dcc3e843.tar.gz
Replace the incomprehensible newline escaping with @NEWLINE@
Fixes the build on Darwin 1.2
Diffstat (limited to 'build')
-rw-r--r--build/genif.sh6
-rw-r--r--build/print_include.awk2
2 files changed, 4 insertions, 4 deletions
diff --git a/build/genif.sh b/build/genif.sh
index 96cf2b162b..947ec2ffaa 100644
--- a/build/genif.sh
+++ b/build/genif.sh
@@ -1,6 +1,6 @@
#! /bin/sh
-# $Id: genif.sh,v 1.1 2000-12-20 17:21:37 sas Exp $
+# $Id: genif.sh,v 1.2 2001-03-30 14:02:20 sas Exp $
# replacement for genif.pl
infile="$1"
@@ -23,7 +23,7 @@ olddir=`pwd`
cd $srcdir
for ext in ${1+"$@"} ; do
- module_ptrs=" phpext_${ext}_ptr,\\\n$module_ptrs"
+ module_ptrs=" phpext_${ext}_ptr,@NEWLINE@$module_ptrs"
header_list="$header_list ext/$ext/*.h"
done
@@ -35,7 +35,7 @@ cat $infile | \
sed \
-e "s'@EXT_INCLUDE_CODE@'$includes'" \
-e "s'@EXT_MODULE_PTRS@'$module_ptrs'" \
- -e 's/[\]n/\
+ -e 's/@NEWLINE@/\
/g'
diff --git a/build/print_include.awk b/build/print_include.awk
index 508ed4c6ad..a4919fae87 100644
--- a/build/print_include.awk
+++ b/build/print_include.awk
@@ -1,6 +1,6 @@
/phpext_/ {
if (old_filename != FILENAME) {
- printf "#include \"" FILENAME "\"\\\\n"
+ printf "#include \"" FILENAME "\"@NEWLINE@"
old_filename = FILENAME
}
}