Sha256: c3332e2b7921e494563c2e008101f8a52f54f00fda4a50cb4b8d78a4472c5e8d
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# # File 'Rakefile' created on 09 ott 2007 at 16:06:57. # # See 'dokkit.rb' or +LICENSE+ for licence information. # # (C) 2006, 2007 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). # # Rakefile for simpledocument project model require 'dokkit' require 'dokkit/app' require 'dokkit/render_task_factory' PDFLATEX = 'pdflatex' factory = Dokkit::RenderTaskFactory.instance render_html = factory.create_render_html render_tex = factory.create_render_tex render_text = factory.create_render_text # Still experimental! The task below must be constructed through a factory instance. desc "Produces pdf files [experimental]" task :render_pdf => [:render_tex] do pwd = Dir.getwd Dir[File.join(render_tex.output_dir,'**/*.tex')].each do |file| Dir.chdir(File.dirname(file)) 2.times { sh "#{PDFLATEX} #{File.basename(file)}" } Dir.chdir(pwd) end end task :default => [:render_html]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dokkit-model-simpledocument-0.1.0 | lib/model/Rakefile |