projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78d6c0b
)
Removed some filtering specific to an old project + few fixes.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 16 Mar 2010 21:48:10 +0000
(22:48 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 16 Mar 2010 21:48:10 +0000
(22:48 +0100)
dirtohtml.sh
patch
|
blob
|
history
diff --git
a/dirtohtml.sh
b/dirtohtml.sh
index
40c2767
..
0c7315a
100755
(executable)
--- a/
dirtohtml.sh
+++ b/
dirtohtml.sh
@@
-47,18
+47,14
@@
echo
echo "<pre>"
echo "<pre>"
-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 "[^.]?*"); do
- 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
if [[ ${most_recent} ]]; then
- date=$(
stat --printf="%y"
${most_recent})
+ date=$(
date -r
${most_recent})
else
else
- date=$(
stat --printf="%y"
${d})
+ date=$(
date -r
${d})
fi
echo "${date} <a href=\"${d}\">${d}</a>"
fi
echo "${date} <a href=\"${d}\">${d}</a>"