docs/diploma

view thesis/scripts/improve-index.awk @ 372:6477e7827617

added scripts for improved index generation and complete bibtex generation
author meillo@marmaro.de
date Sat, 31 Jan 2009 20:07:58 +0100
parents
children d51894e48762
line source
1 #!/usr/bin/awk -f
2 #
3 # improve the index
5 BEGIN{
6 ie["mta"] = "mail transfer agent (\\MTA)";
7 ie["mua"] = "mail user agent (\\MUA)";
8 ie["smtp"] = "simple mail transfer protocol (\\SMTP)";
9 ie["ietf"] = "Internet Engineering Task Force (\\NAME{IETF})";
10 }
12 {
13 cur = $0
14 sub("[^{]*{", "", cur);
15 sub("[}!].*", "", cur);
16 if (ie[cur]) {
17 #print ie[cur];
18 sub("{[^}!]*", "{" ie[cur]);
19 }
20 print;
21 }