X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=dirtohtml.sh;fp=dirtohtml.sh;h=0000000000000000000000000000000000000000;hb=6473993b691c6280c4ad1d1d9a3b697eb0e05eb2;hp=82fc1ba52d5454b4f34a963cbd60c76afd154224;hpb=5d1aa1fd3b6c8a003dd3789791a349f34a0b0c14;p=scripts.git diff --git a/dirtohtml.sh b/dirtohtml.sh deleted file mode 100755 index 82fc1ba..0000000 --- a/dirtohtml.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash - -######################################################################### -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the version 3 of the GNU General Public License # -# as published by the Free Software Foundation. # -# # -# This program is distributed in the hope that it will be useful, but # -# WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # -# General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -# Written by and Copyright (C) Francois Fleuret # -# Contact for comments & bug reports # -######################################################################### - -function error () { - echo $1 1>&2 - exit 1 -} - -## Header ############################################################ - -cat < - - - - - - - - - - - -EOF - -## Body ############################################################## - -echo "

Directory content

" - -echo - -echo "
"
-
-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}')
-
-    # if [[ ${most_recent} ]]; then
-        # date=$(date -r ${most_recent})
-    # else
-        # date=$(date -r ${d})
-    # fi
-
-    # echo "${date} ${d}"
-done
-
-echo "
" - -echo - -## Footer ############################################################ - -cat < - - -EOF - -######################################################################