From cebc2959cc7ff28f407e23e57d990a122732693b Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Wed, 15 Feb 2023 21:53:39 +0000 Subject: [PATCH] Fix a few things that were bothering me. --- TODO.txt | 2 +- tools/bin/man-table | 2 +- tools/bin/td | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.txt b/TODO.txt index 989bc23..aa0375b 100644 --- a/TODO.txt +++ b/TODO.txt @@ -33,7 +33,7 @@ Milestone: v0.2.0 [ ] Document UserInteractiveAuth (move docs from Matrix) [ ] Clean up scripts (make tools/lib/matrix.sh) -[ ] Scripts to generate index with list of man pages and releases? +[x] Scripts to generate index with list of man pages and releases? [x] Update changelog [x] Fix man page links on website diff --git a/tools/bin/man-table b/tools/bin/man-table index ffc0697..1c03c0c 100755 --- a/tools/bin/man-table +++ b/tools/bin/man-table @@ -6,7 +6,7 @@ printf "Man Page" printf "Description" printf "" -find man -type f -name '*.[1-9]' | while IFS= read -r file; do +find man -type f -name '*.[1-9]' | sort -r | while IFS= read -r file; do base=$(basename "$file") name=$(echo "$base" | rev | cut -d '.' -f 2- | rev) diff --git a/tools/bin/td b/tools/bin/td index 432bfa5..af9bcdd 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -171,7 +171,7 @@ recipe_site() { DEV_DOCS=$(man-table dev) cd site/ - find . -type f | while IFS= read -r file; do + find . -type f -not -path '*/CVS/*' | while IFS= read -r file; do dest="$TELODENDRIA_PUB/$file" dir=$(dirname "$dest")