Revision 182
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/test/map | ||
---|---|---|
5 | 5 |
selfDir="$(dirname -- "$0")" |
6 | 6 |
cd "$selfDir" |
7 | 7 |
|
8 |
shopt -s nullglob |
|
9 |
|
|
10 | 8 |
tests_n=2 |
11 | 9 |
testMode= |
12 | 10 |
test -n "$n" || export n="$tests_n" testMode=1 |
... | ... | |
29 | 27 |
test -e "$in" || return 1 |
30 | 28 |
local ext="${in##*.}" # after last "." |
31 | 29 |
for map in "../../mappings/$src-$out_fmt."$table".csv"; do |
30 |
test -e "$map" || continue # glob didn't match anything |
|
32 | 31 |
table="${map%.*}" # remove extension |
33 | 32 |
table="${table##*.}" # after last "." |
34 | 33 |
( |
... | ... | |
73 | 72 |
( |
74 | 73 |
src=VegX method=via_$src |
75 | 74 |
for in in "output/$orig_src."$table".$src.xml"; do |
75 |
test -e "$in" || continue # glob didn't match anything |
|
76 | 76 |
table="${in#*.}" # after first "." |
77 | 77 |
table="${table%%.*}" # before second "." |
78 | 78 |
map toXml |
Also available in: Unified diff
Fixed test/map to work with sh