From a6e797bd6dc8b662572e6a1a14d8b8b60b6ed686 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 14 Feb 1996 16:58:01 +0000 Subject: [PATCH] Added --verbose --- ChangeLog | 12 ++++++++++++ TODO | 3 +++ automake.in | 17 +++++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ce9144d..f52ee9b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ Wed Feb 14 08:36:02 1996 Tom Tromey + Implemented --verbose feature; idea from Greg Woods: + * automake.in (verbose): New global. + (generate_makefile): Print creating message if verbose. + (grep_for_vers_texi): Print message if verbose. + (handle_dependencies): Ditto. + (scan_configure): Ditto. + (read_am_file): Ditto. + (file_contents_with_transform): Ditto. + (parse_arguments): Added --verbose. + (initialize_global_constants): Ditto. + * automake.in (get_object_extension): Use am_line_error. (handle_source_transform): Ditto. (handle_libraries): Ditto. @@ -15,6 +26,7 @@ Wed Feb 14 08:36:02 1996 Tom Tromey (handle_configure): Use am_line_error. (scan_configure): Set config_header_line. (config_header_line): New global. + Use @PERL@ to find perl during exec. From Greg Woods. Tue Feb 13 12:06:51 1996 Tom Tromey diff --git a/TODO b/TODO index 413b7213..9e20f26b 100644 --- a/TODO +++ b/TODO @@ -181,6 +181,9 @@ version.texi handling gettext support all options +Should include extended version of diagram from Autoconf (suggested by +Greg Woods) + ================================================================ Libraries: diff --git a/automake.in b/automake.in index c3465b1e..f4275517 100755 --- a/automake.in +++ b/automake.in @@ -2,7 +2,7 @@ # -*- perl -*- # @configure_input@ -eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}' +eval 'exec @PERL@ -S $0 ${1+"$@"}' if $running_under_some_shell; # automake - create Makefile.in from Makefile.am @@ -60,6 +60,9 @@ $default_strictness_name = 'normal'; # code should be included in generated Makefile.in. $cmdline_use_dependencies = 1; +# TRUE if in verbose mode. +$verbose = 0; + # This holds our (eventual) exit status. We don't actually exit until # we have processed all input files. $exit_status = 0; @@ -223,6 +226,10 @@ sub parse_arguments { $install_missing = 1; } + elsif ($arglist[0] eq '--verbose') + { + $verbose = 1; + } elsif ($arglist[0] eq '--') { # Stop option processing. @@ -262,7 +269,7 @@ sub generate_makefile { local ($makefile) = @_; - # print "creating ", $makefile, ".in\n"; + print "automake: creating ", $makefile, ".in\n" if $verbose; &initialize_per_input; $relative_dir = &dirname ($makefile); @@ -636,6 +643,7 @@ sub grep_for_vers_texi &am_error ("couldn't open \`$filename': $!"); return ''; } + print "automake: reading $filename\n" if $verbose; while () { @@ -1086,6 +1094,7 @@ sub handle_dependencies &am_error ("couldn't open $depfile", $!); next; } + print "automake: reading $depfile\n" if $verbose; # Slurp entire file. $output_rules .= join ('', ); @@ -1541,6 +1550,7 @@ sub scan_configure { open (CONFIGURE, 'configure.in') || die "automake: couldn't open configure.in: $!\n"; + print "automake: reading configure.in\n" if $verbose; # Reinitialize libsources here. This isn't really necessary, # since we currently assume there is only one configure.in. But @@ -1787,6 +1797,7 @@ sub read_am_file 'header-vars'); open (AM_FILE, $amfile) || die "automake: couldn't open $amfile: $!\n"; + print "automake: reading $amfile\n" if $verbose; $output_vars .= ("# Makefile.in generated automatically by automake " . $VERSION . " from Makefile.am\n"); @@ -1983,6 +1994,7 @@ sub initialize_global_constants --install-missing install missing standard files --output-dir=DIR put generated Makefile.in's into DIR --strictness=LEVEL set strictness level. LEVEL is normal, gnu, gnits + --verbose verbosely list files processed --version print version number, then exit\n"; # Copyright on generated Makefile.ins. @@ -2084,6 +2096,7 @@ sub file_contents_with_transform open (FC_FILE, $file) || die "automake: installation error: cannot open \`$file'\n"; + print "automake: reading $file\n" if $verbose; local ($was_rule) = 0; local ($result_vars) = ''; -- 2.43.5