delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/05/09:35:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <007f01c4dad7$d7fb2200$0200000a@agamemnon>
From: "Jon A. Lambert" <jlsysinc AT alltel DOT net>
To: "Cygwin Mail List" <cygwin AT cygwin DOT com>
Subject: Another autotools wrapper problem and fix
Date: Sun, 5 Dec 2004 09:36:44 -0500
MIME-Version: 1.0
X-IsSubscribed: yes

Okay this one is picking at gnits, but autoheader 1.9 will always issue a 
warning message when you ask it to produce warning message because the 
authoheader wrapper passes --warning= and -W as --warning=,blah,blah 
and -W,blah,blah instead of --warning=blah,blah and -Wblah,blah.

Here's another patch.  I think this works.

--------------------
$ diff -ru autoheader-orig autoheader
--- autoheader-orig     2003-12-02 01:21:50.001000000 -0500
+++ autoheader  2004-12-05 09:28:10.570940800 -0500
@@ -115,12 +115,14 @@


     --warnings=* | -W?* )
-       warnings=$warnings,$optarg
+       test $warnings && warnings=$warnings,$optarg
+       test -z $warnings && warnings=$optarg
        shift ;;
     --warnings | -W )
        test $# = 1 && eval "$exit_missing_arg"
        shift
-       warnings=$warnings,$1
+       test $warnings && warnings=$warnings,$1
+       test -z $warnings && warnings=$1
        shift ;;
------------------------------ 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019