[GRASS-CVS] hamish: grass6/scripts/d.out.file d.out.file, 1.15, 1.16

grass at intevation.de grass at intevation.de
Mon Nov 26 23:34:33 EST 2007


Author: hamish

Update of /grassrepository/grass6/scripts/d.out.file
In directory doto:/tmp/cvs-serv1302

Modified Files:
	d.out.file 
Log Message:
cairo doesn't support EPS


Index: d.out.file
===================================================================
RCS file: /grassrepository/grass6/scripts/d.out.file/d.out.file,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- d.out.file	27 Nov 2007 04:17:15 -0000	1.15
+++ d.out.file	27 Nov 2007 04:34:31 -0000	1.16
@@ -241,8 +241,14 @@
 
 
 if [ "$GIS_OPT_FORMAT" = "ps" ] || [ "$GIS_OPT_FORMAT" = "eps" ] ; then
-    if [ $GIS_FLAG_C -eq 1 ] && [ $GIS_FLAG_R -eq 1 ] ; then
-	g.message -w "Cairo driver doesn't know how to do landscape mode"
+    if [ $GIS_FLAG_C -eq 1 ] ; then
+	if [ $GIS_FLAG_R -eq 1 ] ; then
+	   g.message -w "Cairo driver doesn't know how to do landscape mode"
+	fi
+	if [ "$GIS_OPT_FORMAT" = "eps" ] ; then
+	   g.message -e "Cairo driver doesn't support EPS"
+	   exit 1
+	fi
     fi
 
     if [ $GIS_FLAG_C -eq 0 ] ; then




More information about the grass-commit mailing list