build chew into the current directory
[deliverable/binutils-gdb.git] / bfd / doc / scanph
CommitLineData
80d29884
SC
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*
6SFX=p
7if [ $1 = "-i" ]; then
8 SFX=ip
9 shift
10fi
11
80d29884
SC
12out=`echo $2 | cut -d '.' -f 1`
13
14# passes:
15# 1) awk discards lines not intended for header, and marks blocks of
16# text with comments identifying source file;
17# 2) first sed pass interprets Chamberlain markup;
18# 3) further sed passes clean up---merging adjacent comments etc.
19
fafbc319
RP
20awk -f $3/awkscan-$SFX $1 |\
21sed -f $3/sedscript-p |\
22sed -f $3/mergecom-p |\
23sed -f $3/startcom-p |\
24sed -f $3/blins-p |\
25sed -f $3/movecom-p >$out.$SFX
This page took 0.031778 seconds and 4 git commands to generate.