[GRASS-SVN] r66363 - grass-addons/tools/addons
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 28 02:35:21 PDT 2015
Author: martinl
Date: 2015-09-28 02:35:21 -0700 (Mon, 28 Sep 2015)
New Revision: 66363
Modified:
grass-addons/tools/addons/grass-addons.sh
Log:
addons support scripts: cosmetics
Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh 2015-09-28 08:34:43 UTC (rev 66362)
+++ grass-addons/tools/addons/grass-addons.sh 2015-09-28 09:35:21 UTC (rev 66363)
@@ -82,12 +82,13 @@
# check last change
date_last=`svn info --incremental --xml | grep date | cut -d '>' -f2 | cut -d '<' -f1`
+date_now=`date -u`
num_last=`date --date="$date_last" +%s`
-num_now=`date -u +%s`
+num_now=`date --date="$date_now" +%s`
count=$(echo "($num_now - $num_last) / 60." | bc)
if [ "$count" -lt "$CHECK_EVERY_MIN" ] || [ "$1" = "f" ] ; then
- echo "TIME DIFF (min): $count"
+ echo "TIME DIFF (min): $count ($date_last / $date_now)"
build_addons $1
exit 0
fi
More information about the grass-commit
mailing list