]> granicus.if.org Git - php/commitdiff
Replace the incomprehensible newline escaping with @NEWLINE@
authorSascha Schumann <sas@php.net>
Fri, 30 Mar 2001 14:02:20 +0000 (14:02 +0000)
committerSascha Schumann <sas@php.net>
Fri, 30 Mar 2001 14:02:20 +0000 (14:02 +0000)
Fixes the build on Darwin 1.2

build/genif.sh
build/print_include.awk

index 96cf2b162b3c3d0d6bbb68c818a5f310ba62056a..947ec2ffaab9b95bdeab61ab300355e090b038a3 100644 (file)
@@ -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'
 
 
index 508ed4c6ad46dd8353aa0d46e39e7243473452a8..a4919fae87343f738252eafdd4ce6a367bf04fb9 100644 (file)
@@ -1,6 +1,6 @@
 /phpext_/ {
        if (old_filename != FILENAME) {
-               printf "#include \"" FILENAME "\"\\\\n"
+               printf "#include \"" FILENAME "\"@NEWLINE@"
                old_filename = FILENAME
        }
 }