-
Notifications
You must be signed in to change notification settings - Fork 8
/
check.sh
executable file
·30 lines (27 loc) · 1.4 KB
/
check.sh
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
28
29
30
#!/bin/bash
function dfg ()
{
file="$1"
shift
test -e "$file" || touch "$file"
PYTHONPATH=lsl2dfg python lsl2dfg/LSL2dfg.py -d database/kwdb.xml "$@" \
-o "$file".out
cmp -s <(egrep -v '[Dd]atabase version:|[Oo]utput module version:' "$file".out) \
<(egrep -v '[Dd]atabase version:|[Oo]utput module version:' "$file") \
&& rm "$file".out || mv -f "$file".out "$file"
}
md5sum database/kwdb.xml > database/kwdb.xml.md5
PYTHONPATH=lsl2dfg python lsl2dfg/LSL2dfg.py -d database/kwdb.xml -ycp
dfg outputs/rawkeywords.txt -f rawkeywords # includes dupes
dfg outputs/rawkeywords-sl.txt -f rawkeywords -g sl
dfg outputs/rawkeywords-os.txt -f rawkeywords -g os
dfg outputs/rawkeywords-aa.txt -f rawkeywords -g aa
dfg outputs/constants-test-sl.lsl -f constantvaluecheck -g sl -i inputs/constants-test.lsl.in
dfg outputs/constants-test-os.lsl -f constantvaluecheck -g os -i inputs/constants-test.lsl.in
dfg outputs/constants-test-aa.lsl -f constantvaluecheck -g aa -i inputs/constants-test.lsl.in
dfg outputs/functioncheck-sl.lsl -f functioncheck -g sl -i inputs/functioncheck.lsl.in
dfg outputs/functioncheck-os.lsl -f functioncheck -g os -i inputs/functioncheck.lsl.in
dfg outputs/functioncheck-aa.lsl -f functioncheck -g aa -i inputs/functioncheck.lsl.in
dfg outputs/constants-sl.txt -f constantvalues -g sl
dfg outputs/constants-os.txt -f constantvalues -g os
dfg outputs/constants-aa.txt -f constantvalues -g aa