Hallo Andreas,

Andreas Gruenbacher wrote:
> There's an instance of ``uniq -D'' in the mail command as well that John hat 
> trouble with.

With the attached patch (and my patch-17 from an earlier mail) applied, quilt
passes its testsuite on OSX again.  I figured that since we already require
parts of coreutils, it was easier to use coreutils uniq (guniq from darwinports)
than script a workaround in bash.

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  [EMAIL PROTECTED],gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
 Makefile.in  |    1 +
 configure.ac |   12 ++++++++++++
 2 files changed, 13 insertions(+)

Index: quilt-HEAD/Makefile.in
===================================================================
--- quilt-HEAD.orig/Makefile.in
+++ quilt-HEAD/Makefile.in
@@ -18,6 +18,7 @@ POD2MAN :=	@POD2MAN@
 COLUMN :=	@COLUMN@
 GETOPT :=	@GETOPT@
 CP :=		@CP@
+UNIQ :=		@UNIQ@
 DATE :=		@DATE@
 PERL :=		@PERL@
 BASH :=		@BASH@
Index: quilt-HEAD/configure.ac
===================================================================
--- quilt-HEAD.orig/configure.ac
+++ quilt-HEAD/configure.ac
@@ -69,6 +69,18 @@ You can download GNU fileutils from ftp.
 ])
 fi
 
+QUILT_COMPAT_PROG_PATH(UNIQ, uniq, [guniq uniq])
+AC_MSG_CHECKING(whether $UNIQ -D works)
+if echo 'foo' | $UNIQ -D >/dev/null 2>&1; then
+	AC_MSG_RESULT(yes)
+else
+	AC_MSG_ERROR([no
+
+You appear to have a `uniq' that does not support printing only
+duplicates.  You can download GNU coreutils from ftp.gnu.org.
+])
+fi
+
 QUILT_COMPAT_PROG_PATH(PERL, perl, [perl perl5])
 QUILT_COMPAT_PROG_PATH(GREP, grep)
 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to