]> sourceware.org Git - automake.git/commitdiff
Added test for empty var bug
authorTom Tromey <tromey@redhat.com>
Sat, 16 Mar 1996 15:57:59 +0000 (15:57 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 16 Mar 1996 15:57:59 +0000 (15:57 +0000)
ChangeLog
TODO
tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/empty.test [new file with mode: 0755]

index c11336286f444e16d9ad98d78f974171bda7184a..ada0acdd02f85be1d3463b7ac98c7a36c91b5b36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,19 +8,16 @@ Thu Mar 14 09:28:21 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
        * Makefile.am (cvs-diff): New target.
 
+       Fix for bug when install var substitutes empty.  Test empty.test.
        * header.am (install-@DIR@HEADERS): Allow empty list of headers.
        (uninstall-@DIR@HEADERS): Ditto.
-
        * scripts.am (install-@DIR@SCRIPTS): Allow empty list of scripts.
        (uninstall-@DIR@SCRIPTS): Ditto.
-
        * libraries.am (install-@DIR@LIBRARIES): Allow empty list of
        libraries.
        (uninstall-@DIR@LIBRARIES): Ditto.
-
        * data.am (install-@DIR@DATA): Allow empty list of data.
        (uninstall-@DIR@DATA): Ditto.
-
        * programs.am (install-@DIR@PROGRAMS): Added missing semicolon.
        From François Pinard.
        (install-@DIR@PROGRAMS): Fixed bug when list of programs empty.
diff --git a/TODO b/TODO
index 0d1075b75c2ad5dbb8587c75403c36732c775505..9a37e9ec0228a181cd528babcc572ad96380d86d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,8 +1,5 @@
 Priorities for release:
 * For 0.32: remove last mention of DIST_OTHER, DIST_SUBDIRS
-* "libexec_PROGRAMS =" yields invalid syntax for install
-  -> write test!!!
-* Make a patch in cvs-dist.  Use bc
 
 
 Other priorities:
index 1d1b0edc78b4e65b6153d8c4df01ce28cda4bb20..be5cae08500caf06274415914adb47ec1f39e875 100644 (file)
@@ -1,3 +1,7 @@
+Sat Mar 16 08:37:36 1996  Tom Tromey  <tromey@creche.cygnus.com>
+
+       * empty.test: New file.
+
 Fri Mar 15 17:55:13 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
        * installsh.test: New file.
index 4a4be778cfbed13e8131ea9a60d0fa3fab580b67..238c4ec32ca4a58af27759b943dc32a79fb6594d 100644 (file)
@@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = gnits
 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 installsh.test
+canon.test installsh.test empty.test
 
 ## Maybe automake should distribute TESTS?  You tell me.
 EXTRA_DIST = defs $(TESTS)
index 4783e38bc2def2a8c600490e2f760d8ec0bb763b..8c843790064e301ad1918aac329bbe460ae21f7d 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 0.31 from Makefile.am
+# Makefile.in generated automatically by automake 0.32 from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -43,7 +43,7 @@ AUTOMAKE_OPTIONS = gnits
 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 installsh.test
+canon.test installsh.test empty.test
 
 EXTRA_DIST = defs $(TESTS)
 DIST_COMMON = ChangeLog Makefile.am Makefile.in
diff --git a/tests/empty.test b/tests/empty.test
new file mode 100755 (executable)
index 0000000..e6cbea4
--- /dev/null
@@ -0,0 +1,29 @@
+#! /bin/sh
+
+# Test for bug where if the list of installables is empty, invalid sh
+# code is generated.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+data_DATA =
+END
+
+$AUTOMAKE || exit 1
+
+# Create configure so Makefile doesn't look out-of-date.
+echo frob > configure
+echo frob > config.status
+
+# Need a mkinstalldirs we can actually execute.  make on my Linux box
+# won't execute this file if is empty, or has just a colon in it (but
+# it will run from the shell).
+cat > mkinstalldirs << 'END'
+#!/bin/sh
+END
+chmod +x mkinstalldirs
+
+# Substitute variables we need.
+sed -e 's/@top_srcdir@/./g' -e 's/@datadir@/./g' < Makefile.in > Makefile
+
+make install
This page took 0.038194 seconds and 5 git commands to generate.