#!/bin/sh
set -euo pipefail
usage() {
echo 'Usage: indexbody [-n] FILENAME.conf [SORTDATA]'
}
EMIT_HEADER=true
while getopts 'n' flag; do
case "$flag" in
(n)
EMIT_HEADER=false
;;
(*)
usage >&2
exit 2
;;
esac
done
shift $((OPTIND - 1))
FILENAME="${1:-}"
SORTDATA="${2:-"$(dirname -- "$FILENAME")"/sortdata.txt}"
eval "$(assert-arg -- "$FILENAME" 'FILENAME.conf')"
. ./"$FILENAME"
PLURAL="$(cat "$names_dir"/categories/"$lang".txt)"
header() {
cat <
and feeds by
$PLURAL.