summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 06:50:14 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 06:50:14 +0000
commitd068d734ac119cb00239ac8933d482ab219bb23f (patch)
tree746d8c1cb3025d30e973694ae3ffebc59bb815aa
parent59e9293f9b9a1f8daa7d5c504244250a73aabee3 (diff)
downloadruby-d068d734ac119cb00239ac8933d482ab219bb23f.tar.gz
ruby-d068d734ac119cb00239ac8933d482ab219bb23f.tar.xz
ruby-d068d734ac119cb00239ac8933d482ab219bb23f.zip
* instruby.rb: batfile should be CRLF'ed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--instruby.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a41feec3..ff5b2a9af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Oct 2 15:49:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: batfile should be CRLF'ed.
+
Mon Oct 2 01:24:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (test-all): separate directory where running test cases
diff --git a/instruby.rb b/instruby.rb
index 039681853..b1cb95510 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -262,8 +262,8 @@ install?(:local, :comm, :bin) do
if ruby_bin_dosish
batfile = File.join(bindir, name + ".bat")
- open_for_install(batfile, "wb") {|b|
- b.print((<<EOH+shebang+body.chomp+<<EOF).gsub(/^\s+/, '').gsub(/^$/, "\r"))
+ open_for_install(batfile, "w") {|b|
+ b.print(<<EOH+shebang+body+<<EOF)
@echo off
@if not "%~d0" == "~d0" goto WinNT
#{ruby_bin_dosish} -x "#{batfile}" %1 %2 %3 %4 %5 %6 %7 %8 %9