[GRASS-SVN] r68443 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 16 02:51:52 PDT 2016
Author: neteler
Date: 2016-05-16 02:51:52 -0700 (Mon, 16 May 2016)
New Revision: 68443
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
module_svn_propset.sh: check for and add missing keywords
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2016-05-16 09:21:23 UTC (rev 68442)
+++ grass-addons/tools/module_svn_propset.sh 2016-05-16 09:51:52 UTC (rev 68443)
@@ -79,9 +79,16 @@
# will only set if previously empty
set_keywords()
{
+ # check if set at all
if [ `svn proplist "$1" | grep -c 'svn:keywords'` -eq 0 ] ; then
svn propset svn:keywords "Author Date Id" "$1"
fi
+ # check if any keyword is missing
+ for keyword in Author Date Id ; do
+ if [ `svn proplist -v "$1" | grep -c "$keyword"` -eq 0 ] ; then
+ svn propset svn:keywords "Author Date Id" "$1"
+ fi
+ done
}
More information about the grass-commit
mailing list