list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl https://dovel.email/scripts.tar tar

b1424b9

Author: brian (git@myr.sh)

Date: Fri Sep 29 01:46:04 2023 -0300

Parent: 0fcf940

Fixed log page

Diff

diff --git a/update-repo-log b/update-repo-log
index 297d307..4415ac4 100755
--- a/update-repo-log
+++ b/update-repo-log
@@ -46,7 +46,7 @@ createcommitpage() {

echo "creating log.html"
cat << EOF > "$OUT/log.html"
-	$(pageheader "$REPO")
+	$(pagehead "$REPO")
$(pagesummary)
<hr>
<h2>Log</h2>
@@ -54,13 +54,13 @@ cat << EOF > "$OUT/log.html"
<tr><th>Hash</th><th>Author</th><th>Date</th></tr>
EOF

-git log -n 100 --format='%h\n%ad\n%an\%s'  | while read -r h
+git log -n 100 --format='%h\n%ad\n%an\n%s'  | while read -r h
do
read -r date
read -r name
read -r msg

-	[ -f "$OUT/log/$h.html" ] && break
+	# [ -f "$OUT/log/$h.html" ] && break

echo "creating commit page $h"
cat <<- EOF >> "$OUT/log.html"
@@ -69,9 +69,9 @@ do
EOF
createcommitpage "$h" > "$OUT/log/$h.html"
done
-cat << EOF
+cat << EOF >> "$OUT/log.html"
</table>
<p>Note: Only showing up to 100 commits, for full log clone the repo.</p>
</body>
</html>
-EOF >> "$OUT/log.html"
+EOF