summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-07-31 16:45:09 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2025-08-01 00:15:27 +0900
commitb3598cf2a355497693bb66097edc156af3152e9b (patch)
treec4865a804346493679d8b6a596bc36159687da84 /template
parent6c24904a690eb7c4e20c3fa8c3751acc03454100 (diff)
Win: Strip CRs from `cpp` and `nm` output
The combination of mingw tools and cygin/msys2 ruby leaves CRs.
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index b592fbd253..a02582a9dc 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -9,6 +9,7 @@ while /\A(\w+)=(.*)/ =~ ARGV[0]
end
if inc = arg['i']
src = inc == '-' ? STDIN.read : File.read(inc)
+ src.tr!("\r", " ")
src.gsub!(/^#.*\n/, '')
else
src = ""