-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
31 lines (21 loc) · 931 Bytes
/
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
#!/usr/bin/env ruby
require 'rake'
if !File.exist?("#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/")
mkdir "#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/"
end
task :install do
["File Templates", "Project Templates", "Specifications", "Target Templates"].each do |directory|
cp_r directory, "#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/"
end
if !File.exist?("#{ENV['HOME']}/Library/Developer/")
mkdir "#{ENV['HOME']}/Library/Developer/"
end
if !File.exist?("#{ENV['HOME']}/Library/Developer/Shared")
mkdir "#{ENV['HOME']}/Library/Developer/Shared"
end
#!cp_r "Documentation", "#{ENV['HOME']}/Library/Developer/Shared/"
#!if File.exist?("#{ENV['HOME']}/Library/Developer/Shared/Documentation/DocSets/Cappuccino.docset")
#! rm_r "#{ENV['HOME']}/Library/Developer/Shared/Documentation/DocSets/Cappuccino.docset"
#!end
end
task :default => [:install]