Skip to content

Commit

Permalink
binutils: Remove unused substitution PROGRAM
Browse files Browse the repository at this point in the history
Unlike other substitution, this substitution of @program@ was done in
binutils/Makefile and it was intended for binutils/cxxfilt.man.  @program@
in binutils/cxxfilt.man is removed in the commit 0285c67 ("Automate
generate on man pages") in 2001 and @program@ is ineffective since then.

Because PROGRAM substitution does nothing, removing this manual
substitution should be completely safe.

binutils/ChangeLog:

	* doc/local.mk: Remove unused substitution PROGRAM.
	* Makefile.in: Regenerate.
  • Loading branch information
a4lg committed Oct 20, 2022
1 parent f2db12c commit b64dc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions binutils/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2136,8 +2136,7 @@ doc/$(DEMANGLER_NAME).1: doc/cxxfilt.man Makefile doc/$(am__dirstamp)
else \
man=$(srcdir)/doc/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
sed -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
> doc/$(DEMANGLER_NAME).1
html-local: doc/binutils/index.html
Expand Down
3 changes: 1 addition & 2 deletions binutils/doc/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ MAINTAINERCLEANFILES += $(man_MANS) %D%/binutils.info %D%/cxxfilt.man
else \
man=$(srcdir)/%D%/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
sed -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
> %D%/$(DEMANGLER_NAME).1

html-local: %D%/binutils/index.html
Expand Down

0 comments on commit b64dc19

Please sign in to comment.