]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
For Debian Bug #213524:
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 3 Oct 2003 08:58:00 +0000 (08:58 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 3 Oct 2003 08:58:00 +0000 (08:58 +0000)
* lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
stderr and stdout, and grep only the first line while testing
install-info --version's output.  This revert part of the change
from 2001-05-18.

ChangeLog
doc/Makefile.in
lib/am/texinfos.am

index a9befce8e9efed5e3f824cdb3389df8a4a01ad01..20d96f06d286e4c0fc40614544a522026b9b8323 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-10-03  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       For Debian Bug #213524:
+       * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
+       stderr and stdout, and grep only the first line while testing
+       install-info --version's output.  This revert part of the change
+       from 2001-05-18.
+
 2003-10-01  Akim Demaille  <akim@epita.fr>
 
        * m4/amversion.in: Add (C) to the Copyright notice.
index fb8ee63baf1754a5dd7a61de33e3f83724772c5d..50a84254360d733864096b2eccf5b5624617041b 100644 (file)
@@ -229,7 +229,7 @@ maintainer-clean-vti:
 uninstall-info-am:
        $(PRE_UNINSTALL)
        @if (install-info --version && \
-            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
+            install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \
            relfile=`echo "$$file" | sed 's|^.*/||'`; \
@@ -425,7 +425,7 @@ install-info-am: $(INFO_DEPS)
        done
        @$(POST_INSTALL)
        @if (install-info --version && \
-            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
+            install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \
            relfile=`echo "$$file" | sed 's|^.*/||'`; \
index ff19b23981d21bcc3250d0bab3ad15e7643ad39b..a6cc473374a4703a4495c6365dbe9dc5bd32cd94 100644 (file)
@@ -148,15 +148,16 @@ install-info-am: $(INFO_DEPS)
        @$(POST_INSTALL)
 ## Only run this code if install-info actually exists, and it is not
 ## the Debian install-info.  FIXME: once Debian install-info goes
-## away, we can remove this hack.  Debian install-info v1.8.3
-## prints version info to stderr.
+## away, we can remove this hack.  Some versions of Debian install-info
+## print their version on stderr (e.g. 1.8.3), other do it in
+## on stdout (e.g. 1.10.15).
 ##
 ## Do not use
-##    install-info --version 2>&1 | sed 1q | grep -s -v -i debian
+##    install-info --version 2>&1 | sed 1q | grep -v -i debian
 ## as if install-info does not exist, grep -v will be happy, and
 ## therefore the code will be triggered although install-info is missing.
        @if (install-info --version && \
-            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
+            install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \
 ## Strip directory
@@ -191,10 +192,9 @@ if %?LOCAL-TEXIS%
 uninstall-info-am:
        $(PRE_UNINSTALL)
 ## Run two loops here so that we can handle PRE_UNINSTALL and
-## NORMAL_UNINSTALL correctly.  Debian install-info v1.8.3 prints
-## version info to stderr.
+## NORMAL_UNINSTALL correctly.
        @if (install-info --version && \
-            install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
+            install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \
            relfile=`echo "$$file" | sed 's|^.*/||'`; \