+Fri Mar 15 18:30:31 1996 Tom Tromey <tromey@creche.cygnus.com>
+
+ * automake.in (require_config_file): Use correct filename when
+ looking for errors. Also, install file in `.' if not found. Bug
+ reported by Gord Matzigkeit. Test installsh.test.
+
Thu Mar 14 09:28:21 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * Makefile.am (cvs-diff): New target.
+
* header.am (install-@DIR@HEADERS): Allow empty list of headers.
(uninstall-@DIR@HEADERS): Ditto.
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
- cvs tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
+ cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
$(MAKE) dist
+
+cvs-diff:
+ thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
+ prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
+ prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
+ cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
+ > $(PACKAGE)-$$prevno-$(VERSION).diff
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
- cvs tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
+ cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
$(MAKE) dist
+
+cvs-diff:
+ thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
+ prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
+ prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
+ cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
+ > $(PACKAGE)-$$prevno-$(VERSION).diff
.SUFFIXES:
.SUFFIXES: .texi .info .dvi
local ($mystrict, @files) = @_;
local ($file, $dir);
local ($found_it);
+ local ($errfile);
foreach $file (@files)
{
{
$fullfile = $dir . "/" . $file;
+ # Use different name for "error filename". Otherwise on
+ # an error the bad file will be reported as eg
+ # `../../install-sh' when using the default
+ # config_aux_path.
+ $errfile = $fullfile unless $errfile;
+
if (-f $fullfile)
{
$found_it = 1;
# if we must.
if ($symlink_exists)
{
- symlink ($am_dir . '/' . $file, $fullfile);
+ symlink ($am_dir . '/' . $file, $errfile);
}
else
{
- system ('cp', $am_dir . '/' . $file, $fullfile);
+ system ('cp', $am_dir . '/' . $file, $errfile);
}
# FIXME this is a hack. Should have am_warn.
local ($save) = $exit_status;
&am_error
- ("required file \"$fullfile\" not found; installing");
+ ("required file \"$errfile\" not found; installing");
$exit_status = $save;
}
else
{
# Only an error if strictness constraint violated.
- &am_error ("required file \"$fullfile\" not found");
+ &am_error ("required file \"$errfile\" not found");
}
}
}
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
- cvs tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
+ cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
$(MAKE) dist
+
+cvs-diff:
+ thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
+ prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
+ prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
+ cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
+ > $(PACKAGE)-$$prevno-$(VERSION).diff
+Fri Mar 15 17:55:13 1996 Tom Tromey <tromey@creche.cygnus.com>
+
+ * installsh.test: New file.
+
Tue Mar 5 16:22:46 1996 Tom Tromey <tromey@creche.cygnus.com>
* badprog.test: Rewrote.
TESTS = mdate.test vtexi.test acoutput.test instexec.test checkall.test \
acoutnoq.test acouttbs.test libobj.test proginst.test acoutqnl.test \
confincl.test spelling.test prefix.test badprog.test depend.test exdir.test \
-canon.test
+canon.test installsh.test
## Maybe automake should distribute TESTS? You tell me.
EXTRA_DIST = defs $(TESTS)
TESTS = mdate.test vtexi.test acoutput.test instexec.test checkall.test \
acoutnoq.test acouttbs.test libobj.test proginst.test acoutqnl.test \
confincl.test spelling.test prefix.test badprog.test depend.test exdir.test \
-canon.test
+canon.test installsh.test
EXTRA_DIST = defs $(TESTS)
DIST_COMMON = ChangeLog Makefile.am Makefile.in
--- /dev/null
+#! /bin/sh
+
+# Test for this bug:
+# automake: Makefile.am: required file "../../install-sh" not found; installing
+# This also makes sure that install-sh is created in the correct directory.
+
+. $srcdir/defs || exit 1
+
+: > Makefile.am
+rm install-sh
+
+# Since the default path includes '../..', we must run this test in
+# yet another subdir.
+mkdir frob
+mv Makefile.am configure.in mkinstalldirs frob/
+cd frob
+
+# If srcdir is relative, we need to modify it.
+case "$srcdir" in
+ /*)
+ ;;
+
+ *)
+ srcdir="../$srcdir"
+ ;;
+esac
+
+AUTOMAKE="../../../automake --amdir=$srcdir/.. --foreign"
+
+# Now we proceed with the test
+$AUTOMAKE --add-missing > output 2>&1 \
+ || exit 1
+
+# Only one `/' should appear in the output.
+grep '/.*/' output \
+ && exit 1
+
+test -f install-sh