diff options
| author | Joe Carstairs <me@joeac.net> | 2026-05-12 20:56:32 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-05-12 20:56:32 +0100 |
| commit | eb48cdb9a370c37a129637cf0de91e5023306323 (patch) | |
| tree | 0e07a5f762ca9bf65a5cd068e38a75716d53b19c /http/bin | |
| parent | 512f1301178e245d5ba0b4677e44e4d41e24a283 (diff) | |
inits http ssg with mkws
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/lmt | bin | 0 -> 953744 bytes | |||
| -rwxr-xr-x | http/bin/mkws | 29 | ||||
| -rwxr-xr-x | http/bin/pp | bin | 0 -> 805432 bytes |
3 files changed, 29 insertions, 0 deletions
diff --git a/http/bin/lmt b/http/bin/lmt Binary files differnew file mode 100755 index 0000000..e0e19ea --- /dev/null +++ b/http/bin/lmt diff --git a/http/bin/mkws b/http/bin/mkws new file mode 100755 index 0000000..252656c --- /dev/null +++ b/http/bin/mkws @@ -0,0 +1,29 @@ +#!/bin/sh -e +export PATH="$(dirname $(realpath $0)):$PATH" + +usage() { + >&2 printf "usage: %s url [path]\\n" "$(basename "$0")" + exit 1 +} + +test $# -lt 1 && usage + +export SRC="$(realpath src)" +export SHARE="$(realpath share)" +export OUT="$(realpath public)" + +if ! test -f "${SRC}"/index.upphtml +then + >&2 printf "no index.upphtml file found\\n" + exit 1 +fi + +for t in "${SRC}"/*.upphtml +do + echo "Making $(basename "${t%.upphtml}".html)" + pp "${SHARE}"/l.upphtml "${t}" "$1" > \ + "${OUT}/$(basename "${t%.upphtml}".html)" +done + +echo "Making sitemap.xml" +pp "${SHARE}"/sitemap.uppxml "$1" > "${OUT}"/sitemap.xml diff --git a/http/bin/pp b/http/bin/pp Binary files differnew file mode 100755 index 0000000..0b89023 --- /dev/null +++ b/http/bin/pp |
