blob: b84e0fd7c12fddbb556a40eaf3f7a58a9b7510f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
# Runs the AffixLister, formats the resulting text to PDF format, and then
# displays it
# The first argument is the base output name; the rest of the arguments are the
# files to input
set -e
baseout="$1"
shift 1
fileset="$@"
listopts="--guess-groups -z -n named"
outputfle=output/"$baseout".txt
errfle=output/"$baseout".err
afxgroupfle=output/"$baseout".afxgroup
outputopts="-o $outputfle -e $errfle --output-affix-groups $afxgroupfle"
mvn compile exec:java -Dexec.args="$outputopts $listopts $fileset"
#java AffixLister $listopts $fileset > output/"$baseout".txt 2> output/"$baseout".err
tail -n 2 "$errfle"
a2ps --file-align=virtual --header="Affixes" --tabsize=2 -E -g -o output/"$baseout".ps "$outputfle"
ps2pdf output/"$baseout".ps output/"$baseout".pdf
mupdf output/"$baseout".pdf
|