[GRASS-SVN] r30151 - grass/branches/releasebranch_6_3/scripts/g.manual

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 14 10:47:08 EST 2008


Author: neteler
Date: 2008-02-14 10:47:08 -0500 (Thu, 14 Feb 2008)
New Revision: 30151

Modified:
   grass/branches/releasebranch_6_3/scripts/g.manual/g.manual
Log:
define CYGWIN_ROOT if not there (merge from HEAD)

Modified: grass/branches/releasebranch_6_3/scripts/g.manual/g.manual
===================================================================
--- grass/branches/releasebranch_6_3/scripts/g.manual/g.manual	2008-02-14 15:46:34 UTC (rev 30150)
+++ grass/branches/releasebranch_6_3/scripts/g.manual/g.manual	2008-02-14 15:47:08 UTC (rev 30151)
@@ -31,7 +31,7 @@
 #% required : no
 #%End
 
-if test "$GISBASE" = ""; then
+if  [ -z "$GISBASE" ] ; then
     echo "You must be in GRASS GIS to run this program." >&2
     exit 1
 fi
@@ -44,6 +44,9 @@
 {
     #hack for cygwin:
     if [ "$OSTYPE" = "cygwin" ] ; then
+        if  [ -z "$CYGWIN_ROOT" ] ; then
+            CYGWIN_ROOT="\cygwin"
+        fi
         for i in C D E F G H I J K L M N O P Q R S T U V W X Y Z NOT_FOUND
         do
             j="$i:$CYGWIN_ROOT$1"



More information about the grass-commit mailing list