diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-07-31 16:45:09 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-08-01 00:15:27 +0900 |
| commit | b3598cf2a355497693bb66097edc156af3152e9b (patch) | |
| tree | c4865a804346493679d8b6a596bc36159687da84 /template | |
| parent | 6c24904a690eb7c4e20c3fa8c3751acc03454100 (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.in | 1 |
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 = "" |
