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

1de8506

Author: brian (git@myr.sh)

Date: Fri Sep 29 16:36:39 2023 -0300

Parent: a5d8331

Improved logs check

Diff

diff --git a/update-repo-log b/update-repo-log
index afa0b37..cb114ed 100755
--- a/update-repo-log
+++ b/update-repo-log
@@ -70,12 +70,12 @@ do
read -r name
read -r msg

-	[ -f "$OUT/log/$h.html" ] && break
-
-	echo "creating commit page $h"
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"
diff --git a/update-repo-refs b/update-repo-refs
index 1d2bb04..d52ba4d 100755
--- a/update-repo-refs
+++ b/update-repo-refs
@@ -22,7 +22,7 @@ do
echo "<tr><td>$h</td><td>$n</td></tr>" >> "$OUT/refs.html"
done

-echo "</table>\n<h2>Tags</h2>\n<table>"
+echo "</table>\n<h2>Tags</h2>\n<table>" >> "$OUT/refs.html"

git show-ref --tags | while read -r h n
do