-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rb
26 lines (22 loc) · 941 Bytes
/
build.rb
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
chapter_name_order = ["command-line-basics-part-one",
"command-line-basics-part-two",
"finding-and-grepping",
"redirection-and-pipes",
"scripting",
"system-profiler-and-top",
"ssh",
"irb-and-bash",
"curl",
"path",
"linking",
"sed-and-awk",
"xargs-and-cut",
"tips-and-tricks-part-one",
"tips-and-tricks-part-two",
"summary"]
chapters = []
chapter_name_order.each do |chapter_name|
chapters << "en-US/src/#{chapter_name}.md"
end
files = ["en-US/title.txt"] + ["en-US/01-errata.md"] + chapters
`pandoc --toc -S --template=en-US/template.html -o output/just-enough-command-line-en-us.epub #{files.join(" ")}`