diff options
| author | Joe Carstairs <me@joeac.net> | 2026-05-12 21:29:38 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-05-12 21:29:38 +0100 |
| commit | 3759fd137c3aa05145480e87ab87261fbbcc4ada (patch) | |
| tree | 16d133b0b2d4bfc072893bd408f1520514b076fa /http/bin | |
| parent | eb48cdb9a370c37a129637cf0de91e5023306323 (diff) | |
mkws processes css
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/mkws | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/http/bin/mkws b/http/bin/mkws index 252656c..fa4cd99 100755 --- a/http/bin/mkws +++ b/http/bin/mkws @@ -11,6 +11,7 @@ test $# -lt 1 && usage export SRC="$(realpath src)" export SHARE="$(realpath share)" export OUT="$(realpath public)" +mkdir -p ${OUT} if ! test -f "${SRC}"/index.upphtml then @@ -25,5 +26,16 @@ do "${OUT}/$(basename "${t%.upphtml}".html)" done +for t in "${SRC}"/**/*.uppcss +do + t_out="${t%.uppcss}".css + t_out="${t_out#${SRC}/}" + echo "Making ${t_out}" + t_out="${OUT}/${t_out}" + mkdir -p "$(dirname "${t_out}")" + pp "${t}" "$1" > \ + "${t_out}" +done + echo "Making sitemap.xml" pp "${SHARE}"/sitemap.uppxml "$1" > "${OUT}"/sitemap.xml |
