[GRASS-SVN] r63501 - grass-addons/tools/addons
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 12 06:12:49 PST 2014
Author: martinl
Date: 2014-12-12 06:12:49 -0800 (Fri, 12 Dec 2014)
New Revision: 63501
Modified:
grass-addons/tools/addons/grass-addons-publish.sh
grass-addons/tools/addons/grass-addons.sh
Log:
addons: script - do publishing only on change in SVN
Modified: grass-addons/tools/addons/grass-addons-publish.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-publish.sh 2014-12-12 14:10:26 UTC (rev 63500)
+++ grass-addons/tools/addons/grass-addons-publish.sh 2014-12-12 14:12:49 UTC (rev 63501)
@@ -1,7 +1,7 @@
#!/bin/sh
URL=http://geo102.fsv.cvut.cz/grass/addons/
-ADDONS=${HOME}/src/grass-addons/tools/addons
+ADDONS=${HOME}/src/grass-addons
process () {
major=$1
@@ -21,9 +21,15 @@
rm html.tar.gz
}
-process 7 0
-process 6 4
+cd $ADDONS
+nup=`(svn up || (svn cleanup && svn up)) | wc -l`
-${ADDONS}/grass-addons-index.sh
+nup=`(svn up || (svn cleanup && svn up)) | wc -l`
+if [ "$nup" -gt 1 ] || [ "$1" = "f" ] ; then
+ process 7 0
+ process 6 4
+ ${ADDONS}/tools/addons/grass-addons-index.sh
+fi
+
exit 0
Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh 2014-12-12 14:10:26 UTC (rev 63500)
+++ grass-addons/tools/addons/grass-addons.sh 2014-12-12 14:12:49 UTC (rev 63501)
@@ -13,14 +13,8 @@
build_addons() {
cd $DIR/grass-addons/
-##revl=`svn info | grep 'Revision' | cut -d':' -f2 | tr -d ' '`
-##revr=`svn info -rHEAD | grep 'Revision' | cut -d':' -f2 | tr -d ' '`
nup=`(svn up || (svn cleanup && svn up)) | wc -l`
-
-###if [ "$revl" != "$revr" ] || [ "$1" = "f" ] ; then
if [ "$nup" -gt 1 ] || [ "$1" = "f" ] ; then
- ###svn up || (svn cleanup && svn up)
-
cd tools/addons/
./compile-xml.sh $XMLDIR
for version in 6 7 ; do
More information about the grass-commit
mailing list