summaryrefslogtreecommitdiff
path: root/jmake
diff options
context:
space:
mode:
Diffstat (limited to 'jmake')
-rwxr-xr-xjmake/jmake.SH6
1 files changed, 2 insertions, 4 deletions
diff --git a/jmake/jmake.SH b/jmake/jmake.SH
index 3f676b2..bdb5de7 100755
--- a/jmake/jmake.SH
+++ b/jmake/jmake.SH
@@ -143,13 +143,11 @@ while (<CPP>) {
s/@!\s?/\n/g;
s/@@\s?/\n\t/g;
- $* = 1;
# A '\r' is added to all lines, in order to let 'split' keep them
# As lines ending with '\' won't fit in the next regular
# expression (why ?), we have to treat that special case separately
- s/\n$/\r\n/g;
- s/\\\s*$/\\\r/g; # Remove spaces after final '\' and add '\r'
- $* = 0;
+ s/\n$/\r\n/gm;
+ s/\\\s*$/\\\r/gm; # Remove spaces after final '\' and add '\r'
@macro = split(/\n/);
for ($i = 0; $i <= $#macro; $i++) {
chop($_ = $macro[$i]); # Remove final '\r'