[前][次][番号順一覧][スレッド一覧]

ruby-changes:40630

From: nobu <ko1@a...>
Date: Sun, 22 Nov 2015 15:42:19 +0900 (JST)
Subject: [ruby-changes:40630] nobu:r52709 (trunk): fake.rb.in: block comment

nobu	2015-11-22 15:42:14 +0900 (Sun, 22 Nov 2015)

  New Revision: 52709

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52709

  Log:
    fake.rb.in: block comment
    
    * template/fake.rb.in: move shell code inside a block comment.

  Modified files:
    trunk/template/fake.rb.in
Index: template/fake.rb.in
===================================================================
--- template/fake.rb.in	(revision 52708)
+++ template/fake.rb.in	(revision 52709)
@@ -15,14 +15,15 @@ if inc = arg['i'] https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L15
   end
 end
 %>baseruby="<%=arg['BASERUBY']%>"
-ruby="${RUBY-$baseruby}"
+_\
+=begin
 _=
-"eval" "{" \
-"`expr \"$ruby\" : echo > /dev/null || echo exec`" \
-"$ruby" '-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' \
-"}" || "exit" "$?"
-_=baseruby
-ruby=ruby
+ruby="${RUBY-$baseruby}"
+case "$ruby" in "echo "*) $ruby; exit $?;; esac
+case "$0" in /*) r=-r"$0";; *) r=-r"./$0";; esac
+exec $ruby "$r" "$@"
+=end
+=baseruby
 class Object
   remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING)
   CROSS_COMPILING = RUBY_PLATFORM

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]