]> git.sur5r.net Git - glabels/blob - barcode-0.98/doc/mktxt
Imported Upstream version 2.2.8
[glabels] / barcode-0.98 / doc / mktxt
1 #! /usr/bin/awk -f
2
3 # Warning: this may use gnu-awk features
4
5 # Program to create ascii from info;
6 # Missing: table of contents
7
8 # skip 
9
10 BEGIN {NODELINE=0; NODE=0; KEEP=1; printf "\n\n"}
11
12
13 /^\037$/     { NODELINE=1; NODE=NODE+1; KEEP=1; next}
14
15 NODE==1      { next }
16
17 NODELINE==1  {
18              NODELINE=2;
19              sub("^.*Node: ","*Node: ");
20              sub(",.*$","");
21              printf "\n\n\n%s",$0;
22 #print
23              next;
24              }
25
26 NODELINE     { NODELINE=NODELINE+1 }
27
28 NODELINE==4  { printf "\t\t\t\t"; }
29 NODELINE==5  { printf "\t\t\t\t"; NODELINE=0}
30
31
32 /^\* Menu:$/  { KEEP=0 }
33
34
35
36 KEEP==0      { next }
37
38 { print }