[macruby-changes] [282] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 11 20:04:37 PDT 2008
Revision: 282
http://trac.macosforge.org/projects/ruby/changeset/282
Author: lsansonetti at apple.com
Date: 2008-06-11 20:04:36 -0700 (Wed, 11 Jun 2008)
Log Message:
-----------
auto-generate the framework Info.plist file
Modified Paths:
--------------
MacRuby/trunk/Rakefile
Removed Paths:
-------------
MacRuby/trunk/framework/Info.plist
Modified: MacRuby/trunk/Rakefile
===================================================================
--- MacRuby/trunk/Rakefile 2008-06-12 02:45:21 UTC (rev 281)
+++ MacRuby/trunk/Rakefile 2008-06-12 03:04:36 UTC (rev 282)
@@ -487,7 +487,43 @@
exec_line("./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ext/extmk.rb #{EXTMK_ARGS}")
end
-task :install do
+task :framework_info_plist do
+ plist = <<EOS
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>Ruby</string>
+ <key>CFBundleName</key>
+ <string>Ruby</string>
+ <key>CFBundleGetInfoString</key>
+ <string>MacRuby Runtime and Library</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apple.macruby</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>#{MACRUBY_VERSION}</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>#{MACRUBY_VERSION}</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>MacRuby-#{MACRUBY_VERSION}</string>
+ <key>NSPrincipalClass</key>
+ <string></string>
+</dict>
+</plist>
+EOS
+ File.open('framework/Info.plist', 'w') { |io| io.print plist }
+end
+
+task :install =>[:framework_info_plist] do
exec_line("./miniruby instruby.rb #{INSTRUBY_ARGS}")
end
Deleted: MacRuby/trunk/framework/Info.plist
===================================================================
--- MacRuby/trunk/framework/Info.plist 2008-06-12 02:45:21 UTC (rev 281)
+++ MacRuby/trunk/framework/Info.plist 2008-06-12 03:04:36 UTC (rev 282)
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>Ruby</string>
- <key>CFBundleName</key>
- <string>Ruby</string>
- <key>CFBundleGetInfoString</key>
- <string>MacRuby Runtime and Library</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleIdentifier</key>
- <string>com.apple.macruby</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>0.1</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleShortVersionString</key>
- <string>1.9.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>MacRuby-0.1</string>
- <key>NSPrincipalClass</key>
- <string></string>
-</dict>
-</plist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080611/a204d972/attachment.htm
More information about the macruby-changes
mailing list