commit 161b95f4201b039f9cd0dc7e3223d6815c1413ca parent 34725fd10d5bb27d6b67c675e31ac6e68000dfd9 Author: Jan Pobříslo <ccx@te2000.cz> Date: Tue, 5 Jan 2021 02:24:15 +0000 Make listing generator a separate script. Diffstat:
A | gen-listing | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/gen-listing b/gen-listing @@ -0,0 +1,8 @@ +#!/bin/sh +set -x +listing=$1 +shift +find >$listing.tmp "$@" -printf '\n%p\t%y%m\t%n\t%l\t' -type f -exec sha512sum '{}' \; || exit $? +sort <$listing.tmp >$listing.new || exit $? +rm $listing.tmp || exit $? +mv $listing.new $listing || exit $?