Project

General

Profile

« Previous | Next » 

Revision 1132

Use new sort_map instead of manually specifying the sort order

View differences:

bin/join_union_sort
1 1
#!/bin/sh
2
# Inner-joins two map spreadsheets and sorts the output on the output column
2
# Inner-joins two map spreadsheets and automatically appends the joined map when
3
# the input map is a derivative of the joined map. Sorts in the standard order.
3 4

  
4 5
selfDir="$(dirname -- "$0")"
5 6

  
6
"$selfDir/join" "$@"|env ignore=1 "$selfDir/union" "$@"|"$selfDir/sort" 1 0
7
"$selfDir/join" "$@"|env ignore=1 "$selfDir/union" "$@"|"$selfDir/sort_map"
mappings/Makefile
29 29
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
30 30
.%.last_cleanup: %
31 31
	$(bin)/in_place $< $(bin)/simplify_xpath
32
	$(bin)/in_place $< $(bin)/sort 1 0
32
	$(bin)/in_place $< $(bin)/sort_map
33 33
	touch $@
34 34
	$(call review_,$<)
35 35
.PRECIOUS: .%.last_cleanup

Also available in: Unified diff