[GRASS-SVN] r54724 - grass-addons/grass6/vector/v.flip
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 20 12:33:32 PST 2013
Author: msieczka
Date: 2013-01-20 12:33:32 -0800 (Sun, 20 Jan 2013)
New Revision: 54724
Modified:
grass-addons/grass6/vector/v.flip/v.flip
Log:
Advertise v.edit tool=flip.
Modified: grass-addons/grass6/vector/v.flip/v.flip
===================================================================
--- grass-addons/grass6/vector/v.flip/v.flip 2013-01-20 19:49:43 UTC (rev 54723)
+++ grass-addons/grass6/vector/v.flip/v.flip 2013-01-20 20:33:32 UTC (rev 54724)
@@ -62,6 +62,18 @@
exit 1
fi
+# check if we have v.edit and if it provides tool=flip
+if [ -x "`which v.edit`" ] ; then
+ flip_hits=`v.edit --help 2>&1 | grep -c 'flip: '`
+ if [ $flip_hits -gt 0 ]; then
+ echo
+ g.message -w message="v.edit command of your GRASS installation provides \"tool=flip\". \
+ Use it instead. It's faster, more reliable and supported by core developers." 2>&1
+ echo
+ exit 0
+ fi
+fi
+
if [ "$1" != "@ARGS_PARSED@" ]; then
exec g.parser "$0" "$@"
fi
More information about the grass-commit
mailing list