inits http ssg with mkws

This commit is contained in:
2026-05-12 20:56:32 +01:00
parent 512f130117
commit eb48cdb9a3
17 changed files with 1042 additions and 0 deletions
Executable
BIN
View File
Binary file not shown.
Executable
+29
View File
@@ -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
Executable
BIN
View File
Binary file not shown.