diff --git a/publish-blog.sh b/publish-blog.sh new file mode 100755 index 0000000..ff2d41e --- /dev/null +++ b/publish-blog.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +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 -fq +git pull +cd .. + +make publish_blog diff --git a/publish-samhuri.net.sh b/publish-samhuri.net.sh new file mode 100755 index 0000000..0287866 --- /dev/null +++ b/publish-samhuri.net.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +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 -fq +git pull +cd .. + +git clean -fq +git pull + +make publish