Fixed the whitespace
[deliverable/binutils-gdb.git] / bfd / scanph
CommitLineData
90f3f3e2
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`
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
20awk -f awkscan-$SFX $1 |\
21sed -f sedscript-p |\
22sed -f mergecom-p |\
23sed -f startcom-p |\
24sed -f blins-p |\
25sed -f movecom-p >$base.$SFX
This page took 0.041886 seconds and 4 git commands to generate.