Revision 7445
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/redmine_synonyms | ||
---|---|---|
15 | 15 |
level="$1" name="$2" |
16 | 16 |
|
17 | 17 |
# Handle synonyms |
18 |
if test "$level" = 3; then echo "$name $term"
|
|
18 |
if test "$level" = 3; then echo "$name,$term"
|
|
19 | 19 |
else |
20 | 20 |
term="$name" |
21 | 21 |
|
... | ... | |
26 | 26 |
ambigPrefix="${termName}_" |
27 | 27 |
elif test -n "$ambigTerm" -a "${term#$ambigPrefix}" != "$term"; then |
28 | 28 |
# alternative of ambiguous term (starts with $ambigTerm) |
29 |
echo "$ambigTerm $term"
|
|
29 |
echo "$ambigTerm,$term"
|
|
30 | 30 |
else # term not related to ambiguous terms |
31 | 31 |
ambigTerm= ambigPrefix= # clear any ambiguous term in effect |
32 | 32 |
fi |
mappings/Makefile | ||
---|---|---|
28 | 28 |
<$< >$@ |
29 | 29 |
|
30 | 30 |
#Veg+-VegCore.csv: VegCore.htm |
31 |
# (echo "Veg+ VegCore"; $(bin)/redmine_synonyms) <$< >$@
|
|
31 |
# (echo "Veg+,VegCore"; $(bin)/redmine_synonyms) <$< >$@
|
|
32 | 32 |
|
33 | 33 |
VegCore.tables.csv: VegCore.htm |
34 | 34 |
<$< $(sed) -n 's/^.*<h1 *><a href="#[^>]+>([^?<][^<]*).*$$/\1/p' >$@ |
Also available in: Unified diff
redmine_synonyms: Fixed bug where need to output a CSV rather than TSV to be usable by other programs that use map spreadsheets