From c6fe9e0f05bf3d83aa527a0381be527e1ba52f44 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Wed, 27 May 2015 11:30:17 +0200 Subject: [PATCH] gittery --- #printable.rb# | 29 ----------------------------- .#printable.rb | 1 - printable.rb | 7 +++++++ 3 files changed, 7 insertions(+), 30 deletions(-) delete mode 100644 #printable.rb# delete mode 120000 .#printable.rb diff --git a/#printable.rb# b/#printable.rb# deleted file mode 100644 index a589fb7..0000000 --- a/#printable.rb# +++ /dev/null @@ -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 \ No newline at end of file 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 db36d24..0ff4410 100644 --- a/printable.rb +++ b/printable.rb @@ -22,3 +22,10 @@ file=ARGV[0] # dokuwiki pagenme as argument # 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` +