diff options
author | Steve Chamberlain <steve@cygnus> | 1991-08-17 00:16:57 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-08-17 00:16:57 +0000 |
commit | 90f3f3e2b046a492b08d8802fd6e2055508b795e (patch) | |
tree | 2cee2df785574d5200035c64b9a81a09036ec9e4 /bfd/scanit | |
parent | 3a26c0cd00b712a85b63ad962ff72d125154b1bc (diff) | |
download | gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.zip gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.gz gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.bz2 |
Initial revision
Diffstat (limited to 'bfd/scanit')
-rwxr-xr-x | bfd/scanit | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bfd/scanit b/bfd/scanit new file mode 100755 index 0000000..31c8232 --- /dev/null +++ b/bfd/scanit @@ -0,0 +1,23 @@ +#!/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 exmerge | \ +sed -f exfilter >$base.texi + |