* automake.texi (Invoking Automake): Document --force-missing.
* automake.in (force_missing): New global.
(parse_arguments): Recognize --force-missing.
(initialize_global_constants): Document --force-missing.
(require_file_internal): Handle --force-missing.
2000-03-19 Tom Tromey <tromey@cygnus.com>
+ More for PR automake/38:
+ * automake.texi (Invoking Automake): Document --force-missing.
+ * automake.in (force_missing): New global.
+ (parse_arguments): Recognize --force-missing.
+ (initialize_global_constants): Document --force-missing.
+ (require_file_internal): Handle --force-missing.
+
Fix for PR automake/38:
* automake.in (require_file_internal): Check for and handle
dangling symlinks. Fixes symlink2.test.
# TRUE if we should copy missing files; otherwise symlink if possible.
$copy_missing = 0;
+# TRUE if we should always update files that we know about.
+$force_missing = 0;
+
# Files found by scanning configure.in for LIBOBJS.
%libsources = ();
{
$force_generation = 0;
}
+ elsif ($arglist[0] eq '--force-missing')
+ {
+ $force_missing = 1;
+ }
elsif ($arglist[0] =~ /^--output-dir=(.*)$/)
{
# Set output directory.
--amdir=DIR directory storing config files
-c, --copy with -a, copy missing files (default is symlink)
--cygnus assume program is part of Cygnus-style tree
+ --force-missing force update of standard files
--foreign set strictness to foreign
--gnits set strictness to gnits
--gnu set strictness to gnu
}
}
- if ($found_it)
+ if ($found_it && ! $force_missing)
{
# Prune the path list.
@require_file_paths = $save_dir;
{
if ($strictness >= $mystrict)
{
- if ($dangling_sym)
+ if ($dangling_sym || $force_missing)
{
unlink ($fullfile);
}
Causes the generated @file{Makefile.in}s to follow Cygnus rules, instead
of GNU or Gnits rules. For more information, see @ref{Cygnus}.
+@item --force-missing
+@opindex --force-missing
+When used with @code{--add-missing}, causes standard files to be rebuilt
+even if they already exist in the source tree. This involves removing
+the file from the source tree before creating the new symlink (or, with
+@code{--copy}, copying the new file).
+
@item --foreign
@opindex --foreign
Set the global strictness to @samp{foreign}. For more information, see