|
|
vtv2pdf - various - Various utilities developed at bitreich. |
|
|
 |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/ (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
|
--- |
|
|
|
vtv2pdf (288B) |
|
|
|
--- |
|
|
|
1 #!/bin/sh |
|
|
|
2 |
|
|
|
3 if [ $# -lt 1 ]; |
|
|
|
4 then |
|
|
|
5 printf "usage: %s file.vtv\r\n" "$(basename "$0"))" >&2 |
|
|
|
6 exit 1 |
|
|
|
7 fi |
|
|
|
8 |
|
|
|
9 infile="$1" |
|
|
|
10 basefile="$(basename "$infile" .vtv)" |
|
|
|
11 |
|
|
|
12 enscript "$infile" -Brf "Courier16" \ |
|
|
|
13 -I "cat %s | iconv -c -f utf-8 -t iso-8859-1//translit" \ |
|
|
|
14 -p - \ |
|
|
|
15 | ps2pdf - "${basefile}.pdf" |
|