[GRASS-SVN] r43735 -
grass/branches/develbranch_6/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 30 01:50:02 EDT 2010
Author: hamish
Date: 2010-09-30 05:50:02 +0000 (Thu, 30 Sep 2010)
New Revision: 43735
Modified:
grass/branches/develbranch_6/scripts/g.extension/g.extension
Log:
simpler grep test
Modified: grass/branches/develbranch_6/scripts/g.extension/g.extension
===================================================================
--- grass/branches/develbranch_6/scripts/g.extension/g.extension 2010-09-30 05:41:40 UTC (rev 43734)
+++ grass/branches/develbranch_6/scripts/g.extension/g.extension 2010-09-30 05:50:02 UTC (rev 43735)
@@ -277,8 +277,7 @@
g.message message="Installing <$MODULE>..."
# is it a script?
- grep "default: script" "$TMPDIR/$MODULE/Makefile" 2>&1 > /dev/null
- if [ $? -eq 0 ] ; then
+ if [ `grep -c 'default: script' "$TMPDIR/$MODULE/Makefile"` -eq 1 ] ; then
PROGTYPE=scripts
else
PROGTYPE=bin
More information about the grass-commit
mailing list