added staging stuff & install target
[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
12base=`echo $1 | cut -d '.' -f 1`
13out=`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
21awk -f awkscan-$SFX $1 |\
22sed -f sedscript-p |\
23sed -f mergecom-p |\
24sed -f startcom-p |\
25sed -f blins-p |\
26sed -f movecom-p >$out.$SFX
This page took 0.031722 seconds and 4 git commands to generate.