bug-cppi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cppi] [PATCH 03/19] maint: remove useless artifacts copied from cor


From: Jim Meyering
Subject: [bug-cppi] [PATCH 03/19] maint: remove useless artifacts copied from coreutils
Date: Wed, 25 Jan 2012 09:22:40 +0100

From: Jim Meyering <address@hidden>

There is no need to handle special cases like "install" and "[".
* man/Makefile.am (mapped_name): Remove unused cruft.
(programs, check-program-vs-x): Likewise.
---
 man/Makefile.am |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/man/Makefile.am b/man/Makefile.am
index 5b170d3..f3713a5 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -12,14 +12,6 @@ cppi.1:      $(common_dep)   $(srcdir)/cppi.x        
../src/cppi.c

 SUFFIXES = .x .1

-# Ensure that help2man runs the ../src/ginstall binary as
-# `install' when creating install.1.
-# Similarly, ensure that it uses the ../src/[ binary to create test.1.
-t = $*.td
-mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'`
-
-# That is necessary to avoid failures for programs that are also shell built-in
-# functions like echo, false, printf, pwd.
 .x.1:
        $(AM_V_GEN)echo "Updating man page $@";                 \
        PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH;        \
@@ -48,12 +40,11 @@ check-x-vs-1:
 programs =                                                             \
   echo 'spy:;@echo $$(all_programs)'                                   \
     | MAKEFLAGS= $(MAKE) -s -C .. -f Makefile -f - spy                 \
-    | fmt -1 | $(ASSORT) -u | grep -v '\['
+    | fmt -1 | $(ASSORT) -u

 .PHONY: check-programs-vs-x
 check-programs-vs-x:
        $(AM_V_GEN)for p in `$(programs)`; do           \
-         test $$p = ginstall && p=install || : ;       \
          test -f $(srcdir)/$$p.x                       \
            || { echo missing $$p.x 1>&2; missing=1; }; \
        done;                                           \
-- 
1.7.9.rc2.2.g183d6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]