|
From: kimura w. <ki...@us...> - 2005-07-19 12:35:31
|
Hi,
I wrote a patch. We will release a patched source distribution
of 0.4.1.
Sun, 17 Jul 2005 17:18:45 +0100, Jonathan Paisley wrote:
>
>On 17 Jul 2005, at 16:52, Marco Righele wrote:
>
>> The install script expect to find the folder 'framework/build/
>> RubyCocoa.build', but instead there is a 'framework/build/Default/
>> RubyCocoa.framework' folder. Copying the folder (not moving, part
>> of the install script looks in the right place) to the parent
>> directory seemed to fix the problem and now I'm happily playing
>> with shell (cocoa) scripts.
>>
>
>That is due to a change in Xcode 2.1.
>
>Previously, built products were placed in the 'build' directory
>directly. Xcode 2.1 separates them by build configuration -- that's
>the 'Default' directory you're seeing (thus saving on rebuilds when
>switching between configurations).
>
>Glad you got it to work :)
>
>Jonathan
>
--------------
diff -ur rubycocoa-0.4.1.orig/framework/pre-install.rb rubycocoa-0.4.1/framework/pre-install.rb
--- rubycocoa-0.4.1.orig/framework/pre-install.rb 2002-12-28 02:57:59.000000000 +0900
+++ rubycocoa-0.4.1/framework/pre-install.rb 2005-07-19 01:22:39.000000000 +0900
@@ -1,9 +1,18 @@
install_root = @config['install-root']
+obj_path = 'build'
+if File.basename(buildcommand) == 'xcodebuild'
+ if /DevToolsCore-(\d+)/.match(`#{buildcommand} -version`)
+ xcode_version = $1.to_i
+ else
+ xcode_version = 0 # unknown(< Xcode 2.0?)
+ end
+ obj_path = "#{obj_path}/Default" if xcode_version >= 620
+end
# strip symbols for diet of the object file.
fwname = @config['framework-name']
curdir = Dir.pwd
-Dir.chdir "build/#{fwname}.framework/Versions/Current"
+Dir.chdir "#{obj_path}/#{fwname}.framework/Versions/Current"
command "strip -x #{fwname}"
Dir.chdir curdir
@@ -21,4 +30,4 @@
command "mv '#{framework_path}' '#{backup_dir}/'"
end
command "mkdir -p '#{frameworks_dir}'"
-command "cp -R 'build/#{framework_name}' '#{framework_path}'"
+command "cp -R '#{obj_path}/#{framework_name}' '#{framework_path}'"
--------------
--
kimura wataru
<mailto:kimuraw@i.nifty.jp>
|