diff --git a/#printable.rb# b/#printable.rb# deleted file mode 100644 index 347abeb..0000000 --- a/#printable.rb# +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/local/bin/ruby -# -# dokuwiki -> pdf conversion for futurist fieldguide - -repo="/home/nik/pandoc/futurist-fieldguide/" -doku="/var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/" -user="www-data" - -# Dir['*.txt'] - -file=ARGV(0) # dokuwiki pagenme/basename as argument - -# parse dokuwiki -> html - -`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html` - -# convert html -> pdf with pandoc - -`pandoc /tmp/#{file}.html -S --template=#{repo}/templates/fieldguide.tex --include-in-header=#{repo}/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf` diff --git a/.#printable.rb b/.#printable.rb deleted file mode 120000 index f8fdb7d..0000000 --- a/.#printable.rb +++ /dev/null @@ -1 +0,0 @@ -zzk@vrt.local.322 \ No newline at end of file diff --git a/printable.rb b/printable.rb index d5d8186..0f0f5a9 100644 --- a/printable.rb +++ b/printable.rb @@ -8,7 +8,7 @@ user="www-data" # Dir['*.txt'] -file=ARGV # dokuwiki pagenme/basename as argument +file=ARGV[0] # dokuwiki pagenme/basename as argument # parse dokuwiki -> html