add publishing scripts

This commit is contained in:
Sami Samhuri 2011-11-26 23:02:09 -08:00
parent df920e50f1
commit 0535c77a73
2 changed files with 37 additions and 0 deletions

17
publish-blog.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
if [[ -d ~/Projects/web/samhuri.net ]]; then
cd ~/Projects/web/samhuri.net
elif [[ -d ~/samhuri.net ]]; then
cd ~/samhuri.net
else
echo "error: samhuri.net directory not found"
exit 1
fi
cd _blog
git clean -fdq
git pull
cd ..
make publish_blog

20
publish-samhuri.net.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
if [[ -d ~/Projects/web/samhuri.net ]]; then
cd ~/Projects/web/samhuri.net
elif [[ -d ~/samhuri.net ]]; then
cd ~/samhuri.net
else
echo "error: samhuri.net directory not found"
exit 1
fi
cd _blog
git clean -fdq
git pull
cd ..
git clean -fdq
git pull
make publish