sharieswebsite/tasks/autopublish
Yann Esposito (Yogsototh) 739e68ea34 Added nanoc stuff
2011-05-02 12:09:43 +02:00

22 lines
531 B
Bash
Executable file

#!/usr/bin/env zsh
source ~/.zshrc
publishdir="$HOME/Sites/blog"
publisherhost="YiMac.local"
if [[ $HOST != "YiMac.local" ]]; then
print -- "You're Not on '$publisherhost' host"
exit 1
fi
if [[ ! -d $publishdir ]]; then
print -- "Directory '$publishdir' not found"
exit 1
fi
# actions are:
# go to the directory containing the webroot project
# pull updates from webroot
# regen all website
# publish to mobile me
cd $publishdir && git pull && touch layouts/default.html && ./tasks/recompile && ./tasks/publish