summaryrefslogtreecommitdiff
path: root/src/indexbody
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-17 18:38:09 -0300
committerEuAndreh <eu@euandre.org>2024-11-17 18:38:09 -0300
commit9cd0311135e6f17fdc23d4cd521fc3eebf4c553e (patch)
tree77bdb723f53f5374dea2cfc0006efd2ccf707827 /src/indexbody
parentsrc/html: Support emitting only header or footer (diff)
downloadmkwb-9cd0311135e6f17fdc23d4cd521fc3eebf4c553e.tar.gz
mkwb-9cd0311135e6f17fdc23d4cd521fc3eebf4c553e.tar.xz
Improve support for multiple collections
Diffstat (limited to 'src/indexbody')
-rwxr-xr-xsrc/indexbody6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/indexbody b/src/indexbody
index 93b4f90..51090a6 100755
--- a/src/indexbody
+++ b/src/indexbody
@@ -3,19 +3,17 @@ set -euo pipefail
usage() {
- echo 'Usage: index FILENAME.conf FILENAME.sortdata...]'
+ echo 'Usage: index FILENAME.conf'
}
FILENAME="${1:-}"
-FILES="${2:-}"
eval "$(assert-arg -- "$FILENAME" 'FILENAME.conf')"
-eval "$(assert-arg -- "$FILES" 'FILENAME.sortdata...')"
. "$(realpath -- "$FILENAME")"
shift
printf ' <ol class="collection-list">\n'
-find "$@" |
+cat "${FILENAME%.*}.htmldeps" |
xargs cat |
sort -nr |
xargs cat |