X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=dirtohtml.sh;h=82fc1ba52d5454b4f34a963cbd60c76afd154224;hb=bcb2c58dc4ae99501c193c207f9c69c350e66d92;hp=0c7315a18dd8ee866515de78f82d27b988c70ead;hpb=cc99dcb03c99868af8e28dad388fe6e5b733b0a1;p=scripts.git diff --git a/dirtohtml.sh b/dirtohtml.sh index 0c7315a..82fc1ba 100755 --- a/dirtohtml.sh +++ b/dirtohtml.sh @@ -47,17 +47,18 @@ echo echo "
" -for d in $(find . -maxdepth 1 -type d -name "[^.]?*"); 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=$(date -r ${most_recent}) - else - date=$(date -r ${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 ""