Makefile and post-receive hook for deploying.
This commit is contained in:
parent
f2b8adaba0
commit
c1de8266eb
18
Makefile
Normal file
18
Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
FILES != ls *.html *.css
|
||||
|
||||
.PHONEY: all fetch publish
|
||||
|
||||
.SUFFIXES: .html .html.gz .css .css.gz
|
||||
.html.html.gz:
|
||||
gzip -9fk $<
|
||||
|
||||
.css.css.gz:
|
||||
gzip -9fk $<
|
||||
|
||||
all: fetch publish ${FILES:=.gz}
|
||||
|
||||
fetch:
|
||||
git pull
|
||||
|
||||
publish:
|
||||
./publish.el
|
8
gitea-post-receive-hook
Executable file
8
gitea-post-receive-hook
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/ksh
|
||||
|
||||
for v in $(typeset +x | egrep -v '(PATH|PWD|SHELL)'); do
|
||||
unset $v
|
||||
done
|
||||
|
||||
cd /var/www/htdocs
|
||||
make
|
Loading…
Reference in New Issue
Block a user