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

10d444e

Author: brian (git@myr.sh)

Date: Fri Sep 29 01:56:19 2023 -0300

Parent: cc93209

Style

Diff

diff --git a/update-repo-log b/update-repo-log
index fc535e8..5ce9b22 100755
--- a/update-repo-log
+++ b/update-repo-log
@@ -51,10 +51,10 @@ cat << EOF > "$OUT/log.html"
<hr>
<h2>Log</h2>
<table>
-		<tr><th>Hash</th><th>Author</th><th>Date</th></tr>
+		<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'  | while read -r h
+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
@@ -64,8 +64,7 @@ do

echo "creating commit page $h"
cat <<- EOF >> "$OUT/log.html"
-	<tr><td><a href=$h.html>$h</a></td><td>$name</td><td>$date</td></tr>
-	<tr><td colspan=3>Subject: $msg</td></tr>
+	<tr><td><a href=$h.html>$h</a></td><td>$name</td><td>$date</td></tr><td>$msg</td>
EOF
createcommitpage "$h" > "$OUT/log/$h.html"
done
diff --git a/update-repo-tree b/update-repo-tree
index b6bab2a..395757a 100755
--- a/update-repo-tree
+++ b/update-repo-tree
@@ -50,8 +50,8 @@ do
EOF
createfilepage "$f" > "$OUT/tree/$f.html"
done
-cat << EOF
+cat << EOF >> "$OUT/tree.html"
</table>
</body>
</html>
-EOF >> "$OUT/tree.html"
+EOF