From fec0e9b700b038549d510fabbe15d5df4d00b6fa Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Tue, 26 May 2015 19:44:22 +0200 Subject: [PATCH] =?UTF-8?q?-=20=E2=80=98#printable.rb#=E2=80=99=20-=20?= =?UTF-8?q?=E2=80=98.#printable.rb=E2=80=99=20/=20=E2=80=98printable.rb?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- #printable.rb# | 19 ------------------- .#printable.rb | 1 - printable.rb | 2 +- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 #printable.rb# delete mode 120000 .#printable.rb 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