[GRASS-SVN] r67479 - grass-addons/tools/wingrass-packager

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 4 07:13:37 PST 2016


Author: martinl
Date: 2016-01-04 07:13:37 -0800 (Mon, 04 Jan 2016)
New Revision: 67479

Modified:
   grass-addons/tools/wingrass-packager/grass_osgeo4w.sh
Log:
wingrass: remove old daily packages

Modified: grass-addons/tools/wingrass-packager/grass_osgeo4w.sh
===================================================================
--- grass-addons/tools/wingrass-packager/grass_osgeo4w.sh	2016-01-04 13:02:31 UTC (rev 67478)
+++ grass-addons/tools/wingrass-packager/grass_osgeo4w.sh	2016-01-04 15:13:37 UTC (rev 67479)
@@ -23,6 +23,15 @@
     PLATFORM_DIR=x86_64
 fi
 
+function rm_7 {
+    POSTFIX=$1
+
+    dir=${HOME}/${PLATFORM_DIR}/grass${POSTFIX}/osgeo4w/package
+    for f in `find $SRC/${p}/grass$1/osgeo4w/grass*.tar.bz2 -mtime +7`; do
+        rm -rfv $f
+    done
+}
+
 function rsync_package {
     POSTFIX=$1
     VERSION=$2
@@ -43,6 +52,8 @@
 	# release
 	cp $dir/grass*-$package*.tar.bz2 ${HOME}/${PLATFORM_DIR}/grass${POSTFIX}/grass-${VERSION}-${PATCH}.tar.bz2
     fi
+
+    rm_7 $POSTFIX
 }
 
 if test -z $2 ; then



More information about the grass-commit mailing list