forked from sbl/sc-max
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
49 lines (38 loc) · 1.12 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# sc-max build-helper
task :default => :release
desc "compile all externals, copy helpfiles, zip it up"
task :release => [:compile_xcode, :copy_helpfiles] do
v = File.open("VERSION", "r"){|f| f.read}.chomp
sh "cp COPYING _build/"
sh "cp README _build/"
sh "zip -r sc-max-#{v}.zip _build"
end
desc "compile all projects that start with sc.*"
task :compile_xcode do
puts "-------------------"
puts "COMPILING EXTERNALS"
puts "-------------------"
Dir.glob("sc.*/*.xcodeproj").each do |path|
sh "xcodebuild -project #{path} -target 'max-external' -configuration 'Deployment' build"
end
end
desc "copy over all helpfiles from the sc.* projects"
task :copy_helpfiles do
puts "-----------------"
puts "COPYING HELPFILES"
puts "-----------------"
Dir.glob("sc.*/*.maxhelp").each do |maxhelp|
sh "cp #{maxhelp} _build/"
end
end
desc "remove mxo's and maxhelp from _build"
task :clean do
puts "-----------"
puts "CLEANING UP"
puts "-----------"
Dir.glob("sc.*/*.xcodeproj").each do |path|
sh "xcodebuild -project #{path} clean"
end
sh "rm -rf _build/*"
sh "rm -rf sc-max*.zip"
end