www.nico.schottelius.org/Makefile
Nico Schottelius 044790f9b6 insert stop before doing the real publication
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-02 06:30:41 +01:00

26 lines
601 B
Makefile

DESTDIR=/home/users/nico/privat/rechner/netz/seiten/www.nico.schottelius.org/dst/
PUBDIR=tee.schottelius.org:/home/services/www/nico/www.nico.schottelius.org/www/
BROWSER=conkeror
IKIWIKI=ikiwikitest.sh
all:
$(IKIWIKI) --refresh --setup ikiwiki.setup
all-unfresh:
$(IKIWIKI) --setup ikiwiki.setup
view: all
$(BROWSER) ${DESTDIR}/index.html
clean: all
rm -rf ${DESTDIR}
public: all
@echo "Press return to publish..."
@read avariable
git push --mirror
find ${DESTDIR} -type f -exec chmod 0644 {} \;
find ${DESTDIR} -type d -exec chmod 0755 {} \;
rsync -av --delete ${DESTDIR} ${PUBDIR}