home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
p
/
plbin.zip
/
pl
/
library
/
doc.awk
< prev
next >
Wrap
Text File
|
1992-05-26
|
815b
|
38 lines
#!/bin/awk -f
BEGIN { copy = "no";
first = "yes";
}
/^%[ ]*[a-z][a-zA-Z_0-9]*\/0.$/ { copy = "yes";
if ( first == "yes" )
{ print ".BD";
first = "no";
}
print $0;
next;
}
/^%[ ]*title*:/ { copy = "yes";
print $0;
next;
}
/^%[ ]*library*:/ { copy = "yes";
print $0;
next;
}
/^%[ ]*[a-z][a-zA-Z_0-9]*\([A-Za-z0-9_?+ -,]*\)/ { copy = "yes";
if ( first == "yes" )
{ print ".BD";
first = "no";
}
print $0;
next;
}
/^%/ { if ( copy == "yes" )
print $0;
next;
}
{ copy = "no";
next;
}
END { print ".ED";
}