File: rsbmandesc.awk

package info (click to toggle)
librsb 1.3.0.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,792 kB
  • sloc: ansic: 274,405; f90: 108,468; cpp: 16,934; sh: 6,761; makefile: 1,679; objc: 692; awk: 22; sed: 1
file content (22 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/awk -f
#
# This program prints out the Grammar section of a yacc.output file. 
#
BEGIN { sp=0; }
/^.SH NAME$/ { sp=sp+1; }
/.*/ {
		if(sp==1){sp=sp+1;}
		else
		if(sp==2)
		{
			print "librsb - ";
			sp=sp+1;
		}
		else
		if(sp==3)
		{
			print ".SH DESCRIPTION";
			sp=sp+1;
		}
		print;
	}