add publishing scripts
This commit is contained in:
parent
df920e50f1
commit
0535c77a73
2 changed files with 37 additions and 0 deletions
17
publish-blog.sh
Executable file
17
publish-blog.sh
Executable 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
20
publish-samhuri.net.sh
Executable 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
|
||||||
Loading…
Reference in a new issue