From 617c3c56981296dc4a0e2e1fd5acae765ecd5d88 Mon Sep 17 00:00:00 2001 From: Norbert Tretkowski Date: Thu, 15 May 2025 17:46:43 +0200 Subject: [PATCH] Add Makefile --- .gitignore | 1 - Makefile | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 728990d..23bdcca 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ /content/entwuerfe/ hugo_stats.json /.hugo_build.lock -Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f10e6e6 --- /dev/null +++ b/Makefile @@ -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/