[GRASS-SVN] r60137 - grass-addons/grass6/raster/r.connectivity.network

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 6 14:10:47 PDT 2014


Author: sbl
Date: 2014-05-06 14:10:47 -0700 (Tue, 06 May 2014)
New Revision: 60137

Modified:
   grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network
Log:
Fix checks for ghostscript on Mac (r.connectivity.network)

Modified: grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network
===================================================================
--- grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network	2014-05-06 20:28:18 UTC (rev 60136)
+++ grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network	2014-05-06 21:10:47 UTC (rev 60137)
@@ -299,7 +299,7 @@
 	#		exit 1
 	#	fi
 	else
-		if [ ! -x "`which ghostscript`" ] ; then
+		if [  ! -x "`which gs`" -o ! -x "`which ghostscript`" ] ; then
 			g.message -e "ghostscript is required for postscript output, please install ghostscript first" 
 			exit 1
 		fi
@@ -315,7 +315,7 @@
 	#		exit 1
 	#	fi
 	else
-		if [ ! -x "`which ghostscript`" ] ; then
+		if [  ! -x "`which gs`" -o ! -x "`which ghostscript`" ] ; then
 			g.message -e "ghostscript is required for postscript output, please install ghostscript first" 
 			exit 1
 		fi



More information about the grass-commit mailing list