[macruby-changes] [1305] MacRuby/branches/experimental/sample-macruby/buildall.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 3 11:24:57 PDT 2009
Revision: 1305
http://trac.macosforge.org/projects/ruby/changeset/1305
Author: lsansonetti at apple.com
Date: 2009-04-03 11:24:57 -0700 (Fri, 03 Apr 2009)
Log Message:
-----------
chmod 0755 the executables (patch contributed by Jason Morrison)
Modified Paths:
--------------
MacRuby/branches/experimental/sample-macruby/buildall.rb
Modified: MacRuby/branches/experimental/sample-macruby/buildall.rb
===================================================================
--- MacRuby/branches/experimental/sample-macruby/buildall.rb 2009-04-03 18:24:45 UTC (rev 1304)
+++ MacRuby/branches/experimental/sample-macruby/buildall.rb 2009-04-03 18:24:57 UTC (rev 1305)
@@ -23,6 +23,7 @@
Dir.glob('*/**/*.xcodeproj').each do |sampleDir|
name = File.dirname(sampleDir)
+ puts "Building #{name}..."
Dir.chdir name do
ary = system("xcodebuild SYMROOT=#{tmp_dir} >& /dev/null") ? succeeded : failed
ary << name
@@ -31,6 +32,9 @@
Dir.glob(File.join(tmp_dir, '**/*.app')).each do |app|
cp_r app, out_dir
+ app_name = File.basename(app)
+ executable_name = app_name.gsub('.app', '')
+ chmod 0755, File.join(out_dir, app_name, 'Contents', 'MacOS', executable_name)
end
[succeeded, failed].each { |a| a << 'None' if a.empty? }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090403/9b7cd6e2/attachment.html>
More information about the macruby-changes
mailing list