[planet-web] Create and use local Git checkout of Venus



commit 3080087d8521f9a7c89d476958ea3015f28e0d44
Author: Olav Vitters <olav vitters nl>
Date:   Thu Apr 7 10:37:29 2011 +0200

    Create and use local Git checkout of Venus

 update-planet |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/update-planet b/update-planet
index 37d8c10..df68450 100755
--- a/update-planet
+++ b/update-planet
@@ -1,7 +1,7 @@
 #!/bin/sh
 #PLANET=/usr/local/bin/planet/planet.py
 #PLANET=/home/users/jdub/public_html/bzr/planet/devel/trunk/planet.py
-PLANET=/home/users/jdub/bin/venus/planet.py
+PLANET=/var/cache/gnomeweb/venus/planet.py
 
 if [ "$(basename `pwd`)" != "planet-web" ]; then
 	echo "YOU MUST RUN THIS IN planet-web!"
@@ -18,6 +18,13 @@ else
 	shift
 fi
 
+# Checkout Venus (planetplanet) if we do not have it
+if [ -f /var/cache/gnomeweb/venus ]; then
+	pushd /var/cache/gnomeweb
+	git clone https://github.com/rubys/venus
+	popd > /dev/null
+fi
+
 pushd config/$CONFIG > /dev/null
 nice $PLANET $@ config.ini
 popd > /dev/null



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]