Add Makefile
This commit is contained in:
parent
ba2b3e715a
commit
617c3c5698
2 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,4 +4,3 @@
|
||||||
/content/entwuerfe/
|
/content/entwuerfe/
|
||||||
hugo_stats.json
|
hugo_stats.json
|
||||||
/.hugo_build.lock
|
/.hugo_build.lock
|
||||||
Makefile
|
|
||||||
|
|
12
Makefile
Normal file
12
Makefile
Normal 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/
|
Loading…
Add table
Add a link
Reference in a new issue