Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: blmayer (bleemayer@gmail.com)
Date: Mon Oct 2 21:37:44 2023 -0300
Parent: 9703831
Deleted log file
diff --git a/update-repo-log b/update-repo-log
deleted file mode 100755
index cb114ed..0000000
--- a/update-repo-log
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-# for debugging
-# set -ex
-echo "updating git log"
-
-. ./hooks/aux.sh
-
-OUT="$HOME/www/dovel.email/$REPO"
-[ -d "$OUT/log" ] || mkdir -p "$OUT/log"
-
-createcommitpage() {
- cat <<- EOF
- $(pagehead "$REPO")
- $(pagesummary)
- <hr>
- <h2>$1</h2>
- EOF
-
- # print commit
- git show --format='%an%n%ae%n%ad%n%p%n%B' -s "$1" | {
- read -r name
- read -r email
- read -r date
- read -r parent
-
- cat <<- EOF
- <p>Author: $name ($email)</p>
- <p>Date: $date</p>
- <p>Parent: <a href=$parent.html>$parent</a></p>
- <p><pre>
- EOF
-
- # the rest is the message
- cat -
-
- # now the diff
- cat <<- EOF
- </pre>
- <h3>Diff</h3>
- <pre style="overflow-x:auto;white-space:pre">
- EOF
- }
-
- git show --format='' "$1" | while read -r l
- do
- printf "%s\n" "$(escapehtml "$l")"
- done
-
- cat <<- EOF
- </pre>
- </body>
- </html>
- EOF
-}
-
-echo "creating log.html"
-cat << EOF > "$OUT/log.html"
- $(pagehead "$REPO")
- $(pagesummary)
- <hr>
- <h2>Log</h2>
- <table>
- <tr><th>Hash</th><th>Author</th><th>Date</th><th>Subject</td></tr>
-EOF
-
-git log -n 100 --format='%h%n%ad%n%an%n%s' --date=iso | while read -r h
-do
- read -r date
- read -r name
- read -r msg
-
- cat <<- EOF >> "$OUT/log.html"
- <tr><td><a href=log/$h.html>$h</a></td><td>$name</td><td>$date</td><td>$msg</td></tr>
- EOF
-
- [ -f "$OUT/log/$h.html" ] && continue
- echo "creating commit page $h"
- createcommitpage "$h" > "$OUT/log/$h.html"
-done
-cat << EOF >> "$OUT/log.html"
-</table>
-<p>Note: Only showing up to 100 commits, for full log clone the repo.</p>
-</body>
-</html>
-EOF