Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d5af8c

Browse files
author
Sascha Schumann
committedMar 30, 2001
Replace the incomprehensible newline escaping with @newline@
Fixes the build on Darwin 1.2
1 parent 2a7b87a commit 8d5af8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎build/genif.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22

3-
# $Id: genif.sh,v 1.1 2000-12-20 17:21:37 sas Exp $
3+
# $Id: genif.sh,v 1.2 2001-03-30 14:02:20 sas Exp $
44
# replacement for genif.pl
55

66
infile="$1"
@@ -23,7 +23,7 @@ olddir=`pwd`
2323
cd $srcdir
2424

2525
for ext in ${1+"$@"} ; do
26-
module_ptrs=" phpext_${ext}_ptr,\\\n$module_ptrs"
26+
module_ptrs=" phpext_${ext}_ptr,@NEWLINE@$module_ptrs"
2727
header_list="$header_list ext/$ext/*.h"
2828
done
2929

@@ -35,7 +35,7 @@ cat $infile | \
3535
sed \
3636
-e "s'@EXT_INCLUDE_CODE@'$includes'" \
3737
-e "s'@EXT_MODULE_PTRS@'$module_ptrs'" \
38-
-e 's/[\]n/\
38+
-e 's/@NEWLINE@/\
3939
/g'
4040

4141

‎build/print_include.awk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/phpext_/ {
22
if (old_filename != FILENAME) {
3-
printf "#include \"" FILENAME "\"\\\\n"
3+
printf "#include \"" FILENAME "\"@NEWLINE@"
44
old_filename = FILENAME
55
}
66
}

0 commit comments

Comments
 (0)
Please sign in to comment.