Skip to content
Browse files

Created Rakefile for generating PDF.

  • Loading branch information...
1 parent 4b308c3 commit 4663b0b20d1c076e6448962a35158e55cc69e7fd @runpaint committed
Showing with 15 additions and 0 deletions.
  1. +15 −0 Rakefile
View
15 Rakefile
@@ -0,0 +1,15 @@
+
+file 'output/all.html' => FileList['text/**/*.html'] do |t|
+ File.open(t.name,'w') do |out|
+ t.prerequisites.sort.each do |source|
+ out.puts File.open(source).read
+ end
+ end
+end
+
+file 'output/vim-recipes.pdf' => ['output/all.html'] do |t|
+ system("prince #{t.prerequisites.first} #{t.name}")
+end
+
+task :pdf => ['output/vim-recipes.pdf'] do
+end

0 comments on commit 4663b0b

Please sign in to comment.
Something went wrong with that request. Please try again.