Revision 8233
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/redmine_synonyms | ||
---|---|---|
8 | 8 |
|
9 | 9 |
ambigTerm= |
10 | 10 |
term= |
11 |
sed -n 's/^<h[1-4][^>]*>(<img [^>]*title="([^"]*):"[^>]*>|([[:alpha:] ]+):)? *<a href="#[^"]+" class="wiki-page">([^<]+).*$/"\2\3" "\4"/p'\
|
|
11 |
sed -n 's/^<h[1-4][^>]*>(<del>)?(<img [^>]*title="([^"]*):"[^>]*>|([[:alpha:] ]+):)? *<a href="#[^"]+" class="wiki-page">([^<]+).*$/"\3\4" "\5"/p'\
|
|
12 | 12 |
|while read -r line; do |
13 | 13 |
eval set -- $line # split to $@ |
14 | 14 |
type="$1" name="$2" |
mappings/Makefile | ||
---|---|---|
27 | 27 |
php -r 'fpassthru(fopen("https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore", "r"));' >$@ |
28 | 28 |
|
29 | 29 |
$(vocab): VegCore.htm |
30 |
(echo VegCore; $(sed) -n 's/^<h[2-4][^>]*>(<img [^>]*>)? *<a href="#[^>]*>(\??([a-z]|[A-Z]{2})[^<]*)<\/a>.*<a href="#[^"-]+".*$$/\2/p') \
|
|
30 |
(echo VegCore; $(sed) -n 's/^<h[2-4][^>]*>(<del>)?(<img [^>]*>)? *<a href="#[^>]*>(\??([a-z]|[A-Z]{2})[^<]*)<\/a>.*<a href="#[^"-]+".*$$/\3/p') \
|
|
31 | 31 |
<$< >$@ |
32 | 32 |
$(bin)/in_place $@ $(bin)/sort_ci |
33 | 33 |
|
Also available in: Unified diff
mappings/Makefile: $(vocab); bin/redmine_synonyms: Support crossed out (deprecated) terms