Debian Codegraph @

test-slv-hbs.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 USAGE="\n
3 A script for testing generation of individual tag groups (direction sl->sh).\n
4 The script works like a LHS testvoc, grepping *pattern* in the lt-expand output\n
5
6 Usage: `basenamescip-shell system . . basename. ./$0` [-hge] pattern \n
7 \n
8 \t-h\tthis help message\n
9 \t-g\tgrep out generation errors (default)\n
10 \t-f\tfull generation output\n
11 \n
12 Example:\n
13 \t `basenamescip-shell system . . basename. $0` \"<adv>\"\n
14 "
15
16 DOWEGREP=1
17
18 # Parse command line options.
19 while getopts fgh OPT; do
20 case "$OPT" in
21 h)
22 echoscip-shell system . . echo. $USAGE
23 exit 0
24 ;;
25 g) DOWEGREP=1
26 ;;
27 f) DOWEGREP=0
28 ;;
29 \?)
30 # getopts issues an error message
31 echoscip-shell system . . echo. $USAGE >&2
32 exit 1
33 ;;
34 esac
35 done
36
37 # Remove the switches we parsed above.
38 shift `exprscip-shell system . . expr. $OPTIND - 1`
39
40 # We want at least one non-option argument.
41 # Remove this block if you don't need it.
42 if [scip-shell system . . `[`. $# -eq 0 ]; then
43 echoscip-shell system . . echo. $USAGE >&2
44 exit 1
45 fi
46
47 if [scip-shell system . . `[`. $DOWEGREP -eq 0 ]; then
48 lt-expand apertium-sh-sl.sl.dix | grepscip-shell system . . grep. $1 |
49 sedscip-shell system . . sed. 's|.*:||' |
50 sedscip-shell system . . sed. -e 's|^|\^|' -e 's|$|\$|' |
51 apertium-pretransfer |
52 lt-proc -b sl-sh.autobil.bin |
53 apertium-transfer -b apertium-sh-sl.sl-sh.t1x sl-sh.t1x.bin |
54 apertium-interchunk apertium-sh-sl.sl-sh.t2x sl-sh.t2x.bin |
55 apertium-postchunk apertium-sh-sl.sl-sh.t3x sl-sh.t3x.bin |
56 lt-proc -d sl-sh_HR.autogen.bin
57 else
58 lt-expand apertium-sh-sl.sl.dix | grepscip-shell system . . grep. $1 |
59 sedscip-shell system . . sed. 's|.*:||' |
60 sedscip-shell system . . sed. -e 's|^|\^|' -e 's|$|\$|' |
61 apertium-pretransfer |
62 lt-proc -b sl-sh.autobil.bin |
63 apertium-transfer -b apertium-sh-sl.sl-sh.t1x sl-sh.t1x.bin |
64 apertium-interchunk apertium-sh-sl.sl-sh.t2x sl-sh.t2x.bin |
65 apertium-postchunk apertium-sh-sl.sl-sh.t3x sl-sh.t3x.bin |
66 lt-proc -d sl-sh_HR.autogen.bin | grepscip-shell system . . grep. '\\'
67 fi