web

A collection of scripts used to generate this website
git clone https://erai.gay/code/web/
Log | Files | Refs | LICENSE

commit 1bc925a8f8faa0a60c54e4f95f518a2652029f5c
parent eb95d22f4c6228523822bc670c4dff325e3accd2
Author: erai <erai@omiltem.net>
Date:   Fri, 27 Dec 2024 18:16:19 -0500

build on mac

Diffstat:
MMakefile | 26++++++++++++++------------
Mrender.sh | 2+-
2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,17 +1,19 @@ SOURCES:=$(shell \ - find . -not \( \ + find \ + . \ + -not \( \ + \( \ + -name .git \ + -or -name build \ + \) -prune \ + \) \ \( \ - -name .git \ - -or -name build \ - \) -prune \ - \) \( \ - -name '*.ico' \ - -or -name '*.png' \ - -or -name '*.jpg' \ - -or -name '*.html' \ - -or -name '*.txt' \ - \) \ - -printf '%P\n' \ + -name '*.ico' \ + -or -name '*.png' \ + -or -name '*.jpg' \ + -or -name '*.html' \ + -or -name '*.txt' \ + \) \ ) TARGETS:=$(SOURCES:%=build/%) TARGETS+=build/sitemap.txt diff --git a/render.sh b/render.sh @@ -38,7 +38,7 @@ $(cat LICENSE) <meta property="og:description" content="${description}"> <meta name="description" content="${description}"> <link rel="canonical" href="${canonical}"> - <link rel="shortcut icon" type="image/png" href="data:image/png;base64,$(base64 -w0 favicon.png)"> + <link rel="shortcut icon" type="image/png" href="data:image/png;base64,$(base64 < favicon.png | tr -d '\n')"> <style>$(cat css/style.css)</style> $(sed -ne '/<head>/,/<\/head>/p' "$1" | sed -e '1d;$d') </head>