File: optimized-lookup-functionality.sh

package info (click to toggle)
hfst 3.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,532 kB
  • sloc: cpp: 101,875; sh: 6,717; python: 5,225; yacc: 4,985; lex: 2,900; makefile: 2,017; xml: 6
file content (24 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
TOOLDIR=../../tools/src
TOOL=

if [ "$1" = '--python' ]; then
    TOOL="python3 ./hfst-optimized-lookup.py"
else
    TOOL=$TOOLDIR/hfst-optimized-lookup
    if ! test -x $TOOL; then
	exit 0;
    fi
fi

if ! $TOOL cat2dog.hfstol < $srcdir/cat.strings > test.lookups ; then
    exit 1
fi

# Bug 123
echo > empty
if ! $TOOL cat2dog.hfstol < empty > test.lookups ; then
    exit 1
fi

rm test.lookups empty