[GRASS-SVN] r55290 - in grass-addons/tools: . wiki
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 8 05:45:24 PST 2013
Author: martinl
Date: 2013-03-08 05:45:24 -0800 (Fri, 08 Mar 2013)
New Revision: 55290
Added:
grass-addons/tools/wiki/
grass-addons/tools/wiki/install-wiki-ext.sh
grass-addons/tools/wiki/update-wiki.sh
Log:
add support scripts from wiki update
Added: grass-addons/tools/wiki/install-wiki-ext.sh
===================================================================
--- grass-addons/tools/wiki/install-wiki-ext.sh (rev 0)
+++ grass-addons/tools/wiki/install-wiki-ext.sh 2013-03-08 13:45:24 UTC (rev 55290)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+WIKI=/osgeo/grass/grass-wiki
+EXT=$1
+
+if test -z "$EXT" ; then
+ echo "Usage: ext"
+ exit 1
+fi
+
+cd $WIKI/extensions
+git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/${EXT}.git
+
+exit 0
Property changes on: grass-addons/tools/wiki/install-wiki-ext.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Added: grass-addons/tools/wiki/update-wiki.sh
===================================================================
--- grass-addons/tools/wiki/update-wiki.sh (rev 0)
+++ grass-addons/tools/wiki/update-wiki.sh 2013-03-08 13:45:24 UTC (rev 55290)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Update wiki installation (git pull)
+
+IKIPATH=/osgeo/grass/grass-wiki
+VERSION=1_20
+
+cd $WIKIPATH
+git branch | grep REL$VERSION | grep '^*'
+if [ "$?" -ne 0 ] ; then
+ git checkout -b REL$VERSION origin/REL$VERSION
+fi
+git pull
+
+cd $WIKIPATH/extensions
+for ext in `ls -l | grep ^d | awk '{print $9}'` ; do
+ echo $ext...
+ cd $ext
+ git pull
+ cd ..
+done
+
+exit 0
Property changes on: grass-addons/tools/wiki/update-wiki.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list