old-cross-binutils/bfd/scanit
Roland Pesch a7f538ebd1 Wed Aug 21 14:33:06 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
* Makefile.in: use targets "bfd.dvi" and "bfd.ps" instead of
	texdoc and psdoc; make these depend on generated .texi's

	* scanit, (new) unPROTO: turn PROTO macros into ANSI declarations in
	doc

	* bfd.c, reloc.c, syms.c: minor spelling/wording fixes in doc
	portions
1991-08-22 00:13:22 +00:00

24 lines
820 B
Bash
Executable file

#!/bin/sh
# Script to coordinate parsing of S. Chamberlain source-embedded
# documentation markup language.
# Four passes:
# 1) awk discards lines not intended for docn, and marks blocks of
# text with comments identifying source file;
# 2) first sed pass interprets Chamberlain markup;
# 3) second sed pass does cleanup that involves merging lines
# 4) third sed pass does remaining cleans up---making {}
# printable within examples, and eliminating empty index entries and
# headings.
#Third and second sed passes are separate because order of execution is hard
#to control otherwise, making one or another of the things involving @example
#inoperative.
base=`echo $1 | cut -d '.' -f 1`
awk -f awkscan $1 | \
sed -f sedscript | \
sed -f unPROTO | \
sed -f exmerge | \
sed -f exfilter >$base.texi