Project

General

Profile

« Previous | Next » 

Revision 7808

mappings/Makefile: VegCore.thesaurus.csv: `uniq`ify the map after applying initial translations, to support mappings that appear twice (once as the result of an alternative's synonym entry and again as the result of an ambiguous term's alternatives listing)

View differences:

Makefile
36 36
true) <$< >$@ # true: ignore errors if grep found no match
37 37
	# Canonicalize alternatives of ambiguous terms using unambiguous mappings
38 38
	$(bin)/in_place $@ $(bin)/translate 1 <(grep -vE '^\?' $(thesaurus))
39
	$(bin)/in_place $@ uniq
39 40
	$(bin)/in_place $@ $(bin)/collapse_multimap
40 41
	# Replace ambiguous terms with alternatives lists
41 42
	$(bin)/in_place $@ $(bin)/translate 1 $(thesaurus)

Also available in: Unified diff