Mail Archives: cygwin/2004/12/05/09:35:31
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 -