[gs-cvs] rev 8262 - trunk/gs/src

giles at ghostscript.com giles at ghostscript.com
Mon Oct 1 15:59:59 PDT 2007


Author: giles
Date: 2007-10-01 15:59:59 -0700 (Mon, 01 Oct 2007)
New Revision: 8262

Modified:
   trunk/gs/src/configure.ac
Log:
Improve portability in the autoconf build. Solaris doesn't support 'grep 
-q'. Bug 689490.


Modified: trunk/gs/src/configure.ac
===================================================================
--- trunk/gs/src/configure.ac	2007-10-01 06:26:21 UTC (rev 8261)
+++ trunk/gs/src/configure.ac	2007-10-01 22:59:59 UTC (rev 8262)
@@ -821,10 +821,10 @@
 # Remove contributed drivers if requested and make sure we don't have any 
 # duplicates in there, add $(DD)foo.dev constructs
 	noncontribmakefiles=`find . -name '*.mak' -print | grep -v '^\./contrib/'`
-	PRINTERS=`(for i in $P_DEVS; do d='$(DD)'${i}.dev; if ( grep -q '^'$d $noncontribmakefiles ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
+	PRINTERS=`(for i in $P_DEVS; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
 fi
 if test -n "$F_DEVS"; then
-	FILES=`(for i in $F_DEVS; do d='$(DD)'${i}.dev; if ( grep -q '^'$d $noncontribmakefiles ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
+	FILES=`(for i in $F_DEVS; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles  2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
 fi
 AC_SUBST(PRINTERS)
 AC_SUBST(FILES)



More information about the gs-cvs mailing list