[macruby-changes] [2020] MacRuby/branches/experimental/bin/rubyc
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jul 11 23:01:06 PDT 2009
Revision: 2020
http://trac.macosforge.org/projects/ruby/changeset/2020
Author: lsansonetti at apple.com
Date: 2009-07-11 23:01:06 -0700 (Sat, 11 Jul 2009)
Log Message:
-----------
fixed a typo + removed some dead code
Modified Paths:
--------------
MacRuby/branches/experimental/bin/rubyc
Modified: MacRuby/branches/experimental/bin/rubyc
===================================================================
--- MacRuby/branches/experimental/bin/rubyc 2009-07-12 04:07:27 UTC (rev 2019)
+++ MacRuby/branches/experimental/bin/rubyc 2009-07-12 06:01:06 UTC (rev 2020)
@@ -82,7 +82,7 @@
when '.rb'
compile_object(file, nil)
when '.o'
- die "given input file `#{file} must exist" unless File.exist?(File)
+ die "given input file `#{file} must exist" unless File.exist?(file)
file
else
die "given input file `#{file}' must be either a Ruby source file (.rb) or a Mach-O object file (.o)"
@@ -205,12 +205,6 @@
$stderr.puts args
exit 1
end
-
- def show_version
- puts "MacRuby version #{MACRUBY_VERSION}"
- puts "#{NAME} version #{VERSION}"
- exit 1
- end
end
app = Compiler.new(ARGV)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090711/d1cf613b/attachment-0001.html>
More information about the macruby-changes
mailing list