diff options
Diffstat (limited to 'src/sortdata')
-rwxr-xr-x | src/sortdata | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sortdata b/src/sortdata new file mode 100755 index 0000000..5b0b238 --- /dev/null +++ b/src/sortdata @@ -0,0 +1,14 @@ +#!/bin/sh +set -eu + +usage() { + echo 'Usage: sortdata ENTRYPATH' +} + +ENTRYPATH="${1:-}" +eval "$(assert-arg -- "$ENTRYPATH" 'ENTRYPATH')" +. "${ENTRYPATH%.*}.conf" + +f=src/"$date_iso".sortdata +ln -frs "${ENTRYPATH%.*}.xmlentry" "$f" # FIXME: -r is no POSIX +printf '%s\n' "$f" |