root/trunk/bin/sort_map
1 |
#!/bin/sh
|
---|---|
2 |
# Sorts a map spreadsheet in the standard order.
|
3 |
# The standard order sorts on the output column, so that 2-step XML mappings
|
4 |
# will produce output in the same order as a direct mapping using join, allowing
|
5 |
# the results of the two methods to be compared using diff.
|
6 |
|
7 |
selfDir="$(dirname -- "$0")" |
8 |
|
9 |
# uniq: remove duplicates resulting from multiple outputs for the same input
|
10 |
"$selfDir/sort" 1 0|uniq |