This commit is contained in:
nik gaffney 2015-05-27 11:30:17 +02:00
parent d2f7ce8fa0
commit c6fe9e0f05
3 changed files with 7 additions and 30 deletions

View file

@ -1,29 +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 as argument
# parse dokuwiki -> html
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
# convert html -> pdf with pandoc
# extra html step to create self-contained (local) images
`pandoc /tmp/#{file}.html --self-contained -o /tmp/#{file}.html`
`pandoc /tmp/#{file}.html -S --template=#{repo}/pandoc/templates/fieldguide.tex --include-in-header=#{repo}/pandoc/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf`
# merge single pdfs with 'assemble.rb'
# commit & push
# `git add -A`
# `git commit -m "#{msg}"`
# `git pull

View file

@ -1 +0,0 @@
zzk@vrt.local.322

View file

@ -22,3 +22,10 @@ file=ARGV[0] # dokuwiki pagenme as argument
# merge single pdfs with 'assemble.rb' # merge single pdfs with 'assemble.rb'
# gittery - assuming the script is run in #{repo} and has orgin ssh://git@repo.fo.am:foam/futurist-fieldguide.git
# `git add -A`
# `git commit -m "#{msg}"`
# `git pull --commit`
# `git push`