[GRASS-SVN] r71349 - grass-addons/tools/wingrass-packager
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 9 03:30:28 PDT 2017
Author: martinl
Date: 2017-08-09 03:30:28 -0700 (Wed, 09 Aug 2017)
New Revision: 71349
Modified:
grass-addons/tools/wingrass-packager/cronjob.sh
Log:
wingrass/latest addons links: remove rc directories when release is available
Modified: grass-addons/tools/wingrass-packager/cronjob.sh
===================================================================
--- grass-addons/tools/wingrass-packager/cronjob.sh 2017-08-09 08:57:56 UTC (rev 71348)
+++ grass-addons/tools/wingrass-packager/cronjob.sh 2017-08-09 10:30:28 UTC (rev 71349)
@@ -55,8 +55,19 @@
# create symlink to latest version
cd ${SRC}/grass$1/${p}/addons
rm latest
- last_version=`ls -w1 | sort -r | head -n2 | tail -n1`
- ln -sf $last_version latest
+
+ # remove RC builds when release is available
+ for rc in `ls -d grass-*RC[0-9]`; do
+ file=`echo $rc | sed 's/RC[0-9]//g'`
+ if [ -d $file ] ; then
+ echo "Removing $rc..."
+ rm -rf $rc
+ fi
+ done
+
+ latest_version=`ls -w1 | sort -r | head -n2 | tail -n1`
+ echo "Latest version (grass-${1}/${p}): $latest_version"
+ ln -sf $latest_version latest
fi
cd ../..
done
More information about the grass-commit
mailing list