From ffe45ed13fd1b8bd1d8810c9ed8f28d55cca5b10 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 3 Dec 2011 14:26:41 -0800 Subject: [PATCH] Revert "remove unused publish scripts" This reverts commit 9198f8b49f52015fa9f6a22758a97ce21e9e8124. --- publish-blog.sh | 17 +++++++++++++++++ publish-samhuri.net.sh | 20 ++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 publish-blog.sh create mode 100755 publish-samhuri.net.sh 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