From: Roland Pesch Date: Fri, 15 Nov 1991 23:34:35 +0000 (+0000) Subject: .Sanitize: reflect someone's apocopation of binutils.texi[nfo] name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c83497f5451066064b12eff6acc2fb648ccebdb6;p=binutils-gdb.git .Sanitize: reflect someone's apocopation of binutils.texi[nfo] name Makefile.in: improve texi2roff workarounds --- diff --git a/binutils/.Sanitize b/binutils/.Sanitize index 9019028d5c6..e65e4326637 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -41,7 +41,7 @@ strip.1 is-ranlib.c not-ranlib.c maybe-ranlib.c -binutils.texinfo +binutils.texi bucomm.c configure.in copy.c @@ -68,7 +68,11 @@ echo Done in `pwd`. # # # $Log$ -# Revision 1.9 1991/11/06 09:06:02 sac +# Revision 1.10 1991/11/15 23:34:33 pesch +# .Sanitize: reflect someone's apocopation of binutils.texi[nfo] name +# Makefile.in: improve texi2roff workarounds +# +# Revision 1.9 1991/11/06 09:06:02 sac # Added nm.1, objdump.1, ranlib.1, size.1 and strip.1 # # Revision 1.8 1991/11/05 20:53:19 sac diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 54d8333cdc9..969792a72b6 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -26,6 +26,7 @@ idestdir = $(ddestdir) SHELL = /bin/sh MAKEINFO=makeinfo +TEXI2ROFF=texi2roff # Distribution version VERSION=1.91 @@ -105,7 +106,9 @@ BFD = $(LIBDIR)/libbfd.a # ## The rules -all: $(ADDL_LIBS) $(PROGS) binutils.info +all: $(ADDL_LIBS) $(PROGS) + +all-info: binutils.info #$(BFD):$(LIBDIR)/../common/*.c # (cd $(LIBDIR); make) @@ -186,22 +189,44 @@ binutils.info: $(srcdir)/binutils.texi $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi # different targets for -ms, -mm, -me -# (we don't use a variable because we don't trust all makes to handle -# a var in the target name right). +# Try to use a recent texi2roff. v2 was put on prep in jan91. +# If you want an index, see texi2roff doc for postprocessing +# and add -i to texi2roff invocations below. +# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete +# correspondint -e lines when later texi2roff's are current) +# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs. +# + @c's deleted explicitly because texi2roff sees texinfo commands in them +# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank +# + @alphaenumerate is ridiculously new, turned into @enumerate + # roff output (-ms) binutils.ms: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ - texi2roff -ms >binutils.ms + texi2roff -ms | \ + sed -e 's/---/\\(em/g' \ + >binutils.ms # roff output (-mm) +# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, +# try leaving them in binutils.mm: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ -e '/@noindent/d' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ texi2roff -mm | \ sed -e 's/---/\\(em/g' \ @@ -211,9 +236,16 @@ binutils.mm: $(srcdir)/binutils.texi binutils.me: $(srcdir)/binutils.texi sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ + -e '/^@ifinfo/,/^@end ifinfo/d' \ + -e '/^@c/d' \ -e 's/{.*,,/{/' \ + -e 's/@ / /g' \ + -e 's/^@alphaenumerate/@enumerate/g' \ + -e 's/^@end alphaenumerate/@end enumerate/g' \ $(srcdir)/binutils.texi | \ - texi2roff -me >binutils.me + texi2roff -me | \ + sed -e 's/---/\\(em/g' \ + >binutils.me ###################################################################### @@ -229,7 +261,7 @@ TAGS: force realclean: clean -rm -f $(STAGESTUFF) TAGS -install: $(PROGS) +install: all for i in $(PROGS) ; do \ (cp $$i $(bindir)/$$i.new \ && mv -f $(bindir)/$$i.new $(bindir)/$$i) \ @@ -240,6 +272,8 @@ install: $(PROGS) && mv -f $(mandir)/man1/$$i.new $(mandir)/man1/$$i) \ || exit 1 ; \ done + +install-info: all-info for i in *.info* ; do \ (cp $$i $(idestdir)/info/$$i.new \ && mv -f $(idestdir)/info/$$i.new $(idestdir)/info/$$i) \