~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to debian/texi.awk

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/awk -f
 
2
 
 
3
/^@defun/ {
 
4
  a=split($0,A,"(");
 
5
  b=split($0,B,")");
 
6
  if (a==b) 
 
7
    print ; 
 
8
  else {
 
9
    i=1;
 
10
    c=$0;
 
11
  }
 
12
  next;
 
13
 
14
{
 
15
  if (i) {
 
16
    sub("^ *","");
 
17
    c=c " " $0;
 
18
    a=split(c,A,"(");
 
19
    b=split(c,B,")");
 
20
    if (a==b) {
 
21
      print c;
 
22
      c="";
 
23
      i=0;
 
24
    }
 
25
  } else 
 
26
    print;
 
27
}