diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2007-08-13 12:14:08 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2007-08-13 12:14:08 +0000 |
commit | 77e08c92c85470ea1e3754effce85283ca25a41d (patch) | |
tree | 84ffddbcef8d52904bbc6c160848a5fc875b93f4 /jmake | |
parent | a2bc6df4196b1de4aff1ec80e441828dca3d08c0 (diff) |
Linux does not like ^M as line endings: cpp 4.1.x complains. Try with ^A,
hoping it will continue to work on HP-UX.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@19 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'jmake')
-rwxr-xr-x | jmake/fixcpp.SH | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jmake/fixcpp.SH b/jmake/fixcpp.SH index 24dd274..4bbc69b 100755 --- a/jmake/fixcpp.SH +++ b/jmake/fixcpp.SH @@ -43,7 +43,7 @@ $startperl # This program is meant to be called from jmake. All it does is pre-process # the file it is given as argument, focusing on #include directives and # resolving them as cpp would (but without the #line stuff since we don't -# really care about it), escaping all the trailing \ into '\ ^M'. The resulting +# really care about it), escaping all the trailing \ into '\ ^A'. The resulting # temporary file is then handed off to the real cpp for macro processing, and # the output is printed on stdout, after restoration of any original trailing \. # Again, thanks HP-UX for making this so challenging and exciting... :-) @@ -135,7 +135,7 @@ sub escape { # Don't escape trailing backslashes in macro definition or cpp # won't see them as macro continuation any longer, and also within # macro definitions, all those @@ or @! continuations... - s/\\$/\\ \015/ unless /\@[!@]\\$/ || /^#define/; + s/\\$/\\ \001/ unless /\@[!@]\\$/ || /^#define/; } # Append file to given (opened) file descriptor @@ -172,7 +172,7 @@ sub cpp { local($file) = @_; open(CPP, "$cpp $cpp_opt $file |") || die "Can't fork: $!\n"; while (<CPP>) { - s/\\ \015$/\\/; # Un-escape trailing \ + s/\\ \001$/\\/; # Un-escape trailing \ print STDOUT; } close CPP; |