Permalink
Find file
d461cc1 Feb 20, 2011
executable file 18 lines (12 sloc) 433 Bytes
#!/usr/bin/env ruby
system "rm contract.pdf" if File.exists?("./contract.pdf")
system "mkdir html"
files = String.new
Dir.new("./pages").each do |file|
if file.include? ".md"
system "markdown 'pages/#{file}' > 'html/#{file}.html'"
files << "'html/#{file}.html' " unless file == '00-Title Page.md'
end
end
system "htmldoc --book --titlefile 'html/00-Title Page.md.html' -f contract.pdf #{files}"
system "rm -rf html"