Add Makefile

This commit is contained in:
Norbert Tretkowski 2025-05-15 17:46:43 +02:00
parent ba2b3e715a
commit 617c3c5698
Signed by: norbert
GPG key ID: EAA31A3693AAB231
2 changed files with 12 additions and 1 deletions

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
#!/home/norbert/.local/bin/make
all:
rm -rf public
hugo --ignoreCache
cat public/404.html | sed s/404/403/ | sed s/403\ Page\ not\ found/Verboten/ > public/403.html
cat public/404.html | sed s/404/401/ | sed s/401\ Page\ not\ found/Nicht\ erlaubt/ > public/401.html
sed -i s/page\ not\ found/Seite\ verboten/ public/403.html
sed -i s/page\ not\ found/Seite\ nicht\ erlaubt/ public/401.html
sed -i s/page\ not\ found/Seite\ nicht\ gefunden/ public/404.html
rm .hugo_build.lock
#rsync -avP --delete public/ draco:html/
rsync -avP --delete public/ rollcage:docker/nginx/html/