[GRASS-SVN] r30150 - grass/trunk/scripts/g.manual

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 14 10:46:34 EST 2008


Author: neteler
Date: 2008-02-14 10:46:34 -0500 (Thu, 14 Feb 2008)
New Revision: 30150

Modified:
   grass/trunk/scripts/g.manual/g.manual
Log:
define CYGWIN_ROOT if not there

Modified: grass/trunk/scripts/g.manual/g.manual
===================================================================
--- grass/trunk/scripts/g.manual/g.manual	2008-02-14 11:26:15 UTC (rev 30149)
+++ grass/trunk/scripts/g.manual/g.manual	2008-02-14 15:46:34 UTC (rev 30150)
@@ -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