forked from rurema/doctree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
24 lines (20 loc) · 657 Bytes
/
Rakefile
File metadata and controls
24 lines (20 loc) · 657 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
VERSIONS = ["1.8.7", "1.9.3", "2.0.0", "2.1.0"]
def generate_database(version)
puts version
db = "/tmp/db-#{version}"
system("bundle", "exec",
"bitclust", "--database=#{db}",
"init", "version=#{version}", "encoding=UTF-8")
system("bundle", "exec", "bitclust", "--database=#{db}",
"update", "--stdlibtree=refm/api/src")
capi_files = Dir.glob("refm/capi/src/*")
system("bundle", "exec", "bitclust", "--database=#{db}", "--capi",
"update", *capi_files)
end
task :default => [:generate]
desc "Generate document database"
task :generate do
VERSIONS.each do |version|
generate_database(version)
end
end