[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Extend autoreconf `-v' option
From: |
Noah Misch |
Subject: |
Extend autoreconf `-v' option |
Date: |
Fri, 31 Mar 2006 07:06:06 -0800 |
User-agent: |
Mutt/1.5.6i |
With this patch, `autoreconf -vv' yields the usual autoreconf verbose output and
also passes --verbose to tools it calls that support it.
Not all versions of Perl we support shipped a Getopt::Long that supported
incremental options, but that feature was easy to mimic.
2005-03-31 Noah Misch <address@hidden>
* bin/autoreconf.in (parse_args): Multiple -v send --verbose to
subordinate tools.
* lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
* doc/autoconf.texi (autoreconf Invocation): Document it.
diff -urp -X dontdiff ac-clean/bin/autoreconf.in
ac-areconf_verbose/bin/autoreconf.in
--- ac-clean/bin/autoreconf.in 2006-01-31 07:07:40.000000000 -0500
+++ ac-areconf_verbose/bin/autoreconf.in 2006-03-31 09:12:35.000000000
-0500
@@ -216,13 +216,18 @@ sub parse_args ()
$automake .= ' --no-force'
if $aclocal_supports_force;
}
- # --debug;
- if ($debug)
+ # --verbose --verbose or --debug;
+ if ($verbose > 1 || $debug)
{
- $autoconf .= ' --verbose --debug';
- $autoheader .= ' --verbose --debug';
+ $autoconf .= ' --verbose';
+ $autoheader .= ' --verbose';
$automake .= ' --verbose';
$aclocal .= ' --verbose';
+ }
+ if ($debug)
+ {
+ $autoconf .= ' --debug';
+ $autoheader .= ' --debug';
$libtoolize .= ' --debug';
}
# --warnings;
Only in ac-areconf_verbose/bin: autoreconf.in.orig
diff -urp -X dontdiff ac-clean/doc/autoconf.texi
ac-areconf_verbose/doc/autoconf.texi
--- ac-clean/doc/autoconf.texi 2006-03-31 01:08:36.000000000 -0500
+++ ac-areconf_verbose/doc/autoconf.texi 2006-03-31 09:12:35.000000000
-0500
@@ -1501,8 +1501,9 @@ Print a summary of the command line opti
Print the version number of Autoconf and exit.
@item --verbose
-Print the name of each directory where @command{autoreconf} runs
address@hidden (and @command{autoheader}, if appropriate).
+Print the name of each directory @command{autoreconf} examines and the
+commands it runs. If given two or more times, pass @option{--verbose}
+to subordinate tools that support it.
@item --debug
@itemx -d
Only in ac-areconf_verbose/doc: autoconf.texi.orig
diff -urp -X dontdiff ac-clean/lib/Autom4te/General.pm
ac-areconf_verbose/lib/Autom4te/General.pm
--- ac-clean/lib/Autom4te/General.pm 2006-01-21 04:09:46.000000000 -0500
+++ ac-areconf_verbose/lib/Autom4te/General.pm 2006-03-31 09:12:35.000000000
-0500
@@ -273,9 +273,9 @@ sub getopt (%)
%option = ("h|help" => sub { print $help; exit 0 },
"V|version" => sub { print $version; exit 0 },
- "v|verbose" => \$verbose,
- "d|debug" => \$debug,
- 'f|force' => \$force,
+ "v|verbose" => sub { ++$verbose },
+ "d|debug" => sub { ++$debug },
+ 'f|force' => \$force,
# User options last, so that they have precedence.
%option);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Extend autoreconf `-v' option,
Noah Misch <=