-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgenerate.sh
More file actions
executable file
·21 lines (19 loc) · 881 Bytes
/
Copy pathgenerate.sh
File metadata and controls
executable file
·21 lines (19 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
function dfg ()
{
file="$1"
shift
test -e "$file" || touch "$file"
PYTHONPATH=lsl2dfg python lsl2dfg/LSL2dfg.py -u -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"
}
dfg outputs/en_sl.dic -f dictionary -g sl -i inputs/en_sl.dic.in
dfg outputs/kate2.4_lsl.xml -f kate -g sl -i inputs/kate2.4_lsl.xml.in
dfg outputs/geshi_lsl2.php -f geshi -g sl -i inputs/geshi_lsl2.php.in
dfg outputs/geshi_1.2_lang_lsl2.php -f geshi -g sl -i inputs/geshi_1.2_lang_lsl2.php.in
dfg outputs/FuncSigs.hs -f funcsigshs -g sl -i inputs/FuncSigs.hs.in
dfg outputs/Constants.hs -f constantshs -g sl -i inputs/Constants.hs.in
dfg outputs/builtins.txt -f builtinstxt -g sl