-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathupdate
More file actions
executable file
·27 lines (22 loc) · 848 Bytes
/
update
File metadata and controls
executable file
·27 lines (22 loc) · 848 Bytes
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
#!/usr/bin/env ruby
require 'fileutils'
xcode_locations = [
"/Developer/Library/PrivateFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation",
"/Developer/Library/PrivateFrameworks/DVTKit.framework/Versions/A/DVTKit",
"/Developer/Library/PrivateFrameworks/IDEFoundation.framework/Versions/A/IDEFoundation",
"/Developer/Library/PrivateFrameworks/IDEKit.framework/Versions/A/IDEKit",
"/Developer/Library/Xcode/PrivatePlugIns/"]
FileUtils.mkdir_p("docs")
for location in xcode_locations
is_dir = !File.file?(location)
if is_dir
for file in Dir[location + "*"]
filename = File.basename(file, ".*")
dir = "docs/" + File.basename(location)
FileUtils.mkdir_p(dir)
`class-dump '#{file}' > #{dir}/#{filename}.h`
end
else
`class-dump '#{location}' > docs/#{File.basename(location)}.h`
end
end