X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=dirtohtml.sh;h=82fc1ba52d5454b4f34a963cbd60c76afd154224;hb=e035956d6edd0e601b7d1b50a4ed2e7b3ce81b00;hp=40c276714cc88105b9e64a251d5d24309607a90c;hpb=2b983c5c7336826b764036e3e1478a5a8159248a;p=scripts.git diff --git a/dirtohtml.sh b/dirtohtml.sh index 40c2767..82fc1ba 100755 --- a/dirtohtml.sh +++ b/dirtohtml.sh @@ -47,21 +47,18 @@ echo echo "
" -for d in $(find . -maxdepth 1 -type d -name "[^.]?*" | \ - awk '{print $1" "$1}' | \ - sed -e "s/^[^0-9]*//" | \ - sort -g | \ - awk '{print $2}'); do +for d in $(find . -maxdepth 1 -type d -name "[^.]?*" | sort); do + echo "${d}" - most_recent=$(find ${d} -type f -exec stat --printf="%y %n\n" '{}' \; | sort | tail -1 | awk '{print $4}') + # most_recent=$(find ${d} -type f -exec stat --printf="%Y %n\n" '{}' \; | sort | tail -1 | awk '{print $4}') - if [[ ${most_recent} ]]; then - date=$(stat --printf="%y" ${most_recent}) - else - date=$(stat --printf="%y" ${d}) - fi + # if [[ ${most_recent} ]]; then + # date=$(date -r ${most_recent}) + # else + # date=$(date -r ${d}) + # fi - echo "${date} ${d}" + # echo "${date} ${d}" done echo ""