Add vtv2pdf command. - various - Various utilities developed at bitreich. HTML git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/ DIR Log DIR Files DIR Refs DIR Tags --- DIR commit 260988ae866ce99cead30846c3f0bb51dfa12e5c DIR parent aea796bdecf6aaeb2f8b1b1d6ba2c32c8a11da09 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 2 May 2020 15:29:07 +0200 Add vtv2pdf command. Diffstat: A vtv2pdf | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) --- DIR diff --git a/vtv2pdf b/vtv2pdf @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ $# -lt 1 ]; +then + printf "usage: %s file.vtv\r\n" "$(basename "$0"))" >&2 + exit 1 +fi + +infile="$1" +basefile="$(basename "$infile" .vtv)" + +enscript "$infile" -Brf "Courier16" \ + -I "cat %s | iconv -c -f utf-8 -t iso-8859-1//translit" \ + -p - \ + | ps2pdf - "${basefile}.pdf"