Repair info node-pointer bug.
[deliverable/binutils-gdb.git] / bfd / doc / scanph
1 #!/bin/sh
2 # Script to coordinate parsing of S. Chamberlain source-embedded
3 # header-file markup language.
4
5 # '-i' option means use *proto-internal* segments, else just *proto*
6 SFX=p
7 if [ $1 = "-i" ]; then
8 SFX=ip
9 shift
10 fi
11
12 base=`echo $1 | cut -d '.' -f 1`
13 out=`echo $2 | cut -d '.' -f 1`
14
15 # passes:
16 # 1) awk discards lines not intended for header, and marks blocks of
17 # text with comments identifying source file;
18 # 2) first sed pass interprets Chamberlain markup;
19 # 3) further sed passes clean up---merging adjacent comments etc.
20
21 awk -f awkscan-$SFX $1 |\
22 sed -f sedscript-p |\
23 sed -f mergecom-p |\
24 sed -f startcom-p |\
25 sed -f blins-p |\
26 sed -f movecom-p >$out.$SFX
This page took 0.031348 seconds and 4 git commands to generate.