Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Tue Dec 26 20:02:11 2023 -0300
Parent: 122d2f0
Updated readme
diff --git a/README.md b/README.md index bdd49af..e77e79d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ This repo has shell scripts that are part of the dovel project, some are meant o - update*: used by git to creat html pages - receive-localhost: saves emails and create html pages +If you want scripts to use as hooks, see the [hooks](/hooks/index.html) repo. + ## Contributing
diff --git a/update-repo-tree b/update-repo-tree
deleted file mode 100755
index 395757a..0000000
--- a/update-repo-tree
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-# for debugging
-# set -ex
-echo "updating git tree"
-
-. ./hooks/aux.sh
-
-OUT="$HOME/www/dovel.email/$REPO"
-createfilepage() {
- cat <<- EOF
- $(pagehead "$REPO")
- $(pagesummary)
- <hr>
- <h2>$1</h2>
- <file>
- <pre>
- <ol>
- EOF
-
- # print file
- while IFS= read -r l
- do
- printf "<li>%s</li>\n" "$(escapehtml "$l")"
- done < "$OUT/tree/$1"
-
- echo "</ol>\n</pre>\n</file>\n</body>\n</html>"
-}
-
-echo "creating tree.html"
-cat << EOF > "$OUT/tree.html"
- $(pagehead "$REPO")
- $(pagesummary)
- <hr>
- <h2>Tree</h2>
- <table>
- <tr><th>Size</th><th>Name</th><th>Raw</th></tr>
-EOF
-
-(cd "$OUT/tree" && 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>
- <td><a href=tree/$f.html>$f</a></td>
- <td><a href=tree/$f>raw</a></td>
- </tr>
- EOF
- createfilepage "$f" > "$OUT/tree/$f.html"
-done
-cat << EOF >> "$OUT/tree.html"
-</table>
-</body>
-</html>
-EOF