Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: blmayer (bleemayer@gmail.com)
Date: Wed Oct 4 02:40:59 2023 -0300
Parent: fba27d2
Added echo
diff --git a/post-receive b/post-receive
index 84d3b52..c360dc8 100755
--- a/post-receive
+++ b/post-receive
@@ -211,8 +211,6 @@ updatetree() {
(cd "$OUT/raw" && find * -type f -printf '%s %p\n') | while read -r s f
do
- echo "updating file $f"
-
cat <<- EOF >> "$OUT/tree.html"
<tr>
<td>$s</td>
@@ -224,9 +222,9 @@ updatetree() {
# create html page with file content
git show --format='' --name-status "$1" -- "$f" | read -r op x
case "$op" in
- "D") rm "$OUT/tree/$f.html"; continue ;;
+ "D") rm "$OUT/tree/$f.html" ;;
"C"|"M") filepage "$f" > "$OUT/tree/$f.html" ;;
- "") continue ;;
+ "") echo "no change for file $f" ;;
esac
done