Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 783 Bytes
require 'rake/clean'
TEXEN = FileList['*.tex']
%w{aux ps dvi log}.each { |ext| CLEAN.include "**/*.#{ext}" }
CLOBBER.include('eqnsheet.pdf')
rule('.dvi' => '.tex') { |tex_file| sh "latex #{tex_file.source}" }
rule('.ps' => '.dvi') { |dvi_file| sh "dvips #{dvi_file.source}" }
rule('.pdf' => '.ps') { |ps_file| sh "ps2pdf #{ps_file.source}" }
FileList['*.tex'].each do |tex_file|
file tex_file.ext('.dvi') => tex_file
file tex_file.ext('.ps' ) => tex_file.ext('.dvi')
file tex_file.ext('.pdf') => tex_file.ext('.ps')
end
desc 'build my equation sheet'
task :'equation-sheet' => 'eqnsheet.pdf'
task :default => :'equation-sheet'
desc 'upload to teh webz'
task :upload do
sh "rsync -avzh --delete --chmod=o=rx,g=rwx,u=rwx www/ fsdev.net:~/nserror.me/equation-sheet/"
end