projects
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the ua (unarchive) shortcut + an option in selector-history.
[scripts.git]
/
dirtohtml.sh
diff --git
a/dirtohtml.sh
b/dirtohtml.sh
index
0c7315a
..
82fc1ba
100755
(executable)
--- a/
dirtohtml.sh
+++ b/
dirtohtml.sh
@@
-47,17
+47,18
@@
echo
echo "<pre>"
echo "<pre>"
-for d in $(find . -maxdepth 1 -type d -name "[^.]?*"); do
+for d in $(find . -maxdepth 1 -type d -name "[^.]?*" | sort); do
+ echo "<a href=\"${d}\">${d}</a>"
- 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} <a href=\"${d}\">${d}</a>"
+
#
echo "${date} <a href=\"${d}\">${d}</a>"
done
echo "</pre>"
done
echo "</pre>"