Permalink
Browse files

Install in prefix/bin.

  • Loading branch information...
1 parent 11dcafd commit 5193e8b9c422d918fae9482fceb56030d80dfd8e @alloy alloy committed Dec 18, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 Rakefile
View
@@ -9,8 +9,10 @@ end
desc "Install a Release build"
task :install => :build do
- if (prefix = ENV['prefix']) && File.directory?(prefix)
- cp 'build/Release/ios-sim', prefix
+ if prefix = ENV['prefix']
+ bin_dir = File.join(prefix, 'bin')
+ mkdir_p bin_dir
+ cp 'build/Release/ios-sim', bin_dir
else
puts "[!] Specify a directory as the install prefix with the `prefix' env variable"
exit 1

0 comments on commit 5193e8b

Please sign in to comment.