docs/diploma

view thesis/scripts/improve-index.awk @ 381:850e2a474adb

complete rework of ch04
author meillo@marmaro.de
date Thu, 05 Feb 2009 11:34:20 +0100
parents 6477e7827617
children e57129f57faa
line source
1 #!/usr/bin/awk -f
2 #
3 # improve the index
5 BEGIN{
6 e["mta"] = "mail transfer agent (\\NAME{MTA})";
7 e["mua"] = "mail user agent (\\NAME{MUA})";
8 e["mda"] = "mail delivery agent (\\NAME{MUA})";
9 e["smtp"] = "simple mail transfer protocol (\\NAME{SMTP})";
10 e["ietf"] = "Internet Engineering Task Force (\\NAME{IETF})";
11 e["debian"] = "Debian";
12 e["ascii"] = "ascii@\\NAME{ASCII}";
13 e["gpl"] = "General Public License (\\NAME{GPL})";
15 e["Oliver Kurth"] = e["Kurth"] = "Kurth@\\textsc{Kurth, Oliver}";
16 e["Adam Back"] = e["Back"] = "Back@\\textsc{Back, Adam}";
17 e["Eric Allman"] = e["Allman"] = "Allman@\\textsc{Allman, Eric}";
18 e["Stas Bekman"] = e["Bekman"] = "Bekman@\\textsc{Bekman, Stas}";
19 e["Daniel J. Bernstein"] = e["Bernstein"] = "Bernstein@\\textsc{Bernstein, Daniel J.}";
20 e["Bryan Costales"] = e["Costales"] = "Costales@\\textsc{Costales, Bryan}";
21 e["George Candea"] = e["Candea"] = "Candea@\\textsc{Candea, George}";
22 e["Dan Shearer"] = e["Shearer"] = "Shearer@\\textsc{Shearer, Dan}";
23 e["Dave Sill"] = e["Sill"] = "Sill@\\textsc{Sill, Dave}";
24 e["David A. Wheeler"] = e["Wheeler"] = "Wheeler@\\textsc{Wheeler, David A.}";
25 e["Kyle D. Dent"] = e["Dent"] = "Dent@\\textsc{Dent, Kyle D.}";
26 e["Derek Broughton"] = e["Broughton"] = "Broughton@\\textsc{Broughton, Derek}";
27 e["Doug McIlroy"] = e["McIlroy"] = "McIlroy@\\textsc{McIlroy, Doug}";
28 e["Peter Eisentraut"] = e["Eisentraut"] = "Eisentraut@\\textsc{Eisentraut, Peter}";
29 e["Tony Finch"] = e["Finch"] = "Finch@\\textsc{Finch, Tony}";
30 e["Armando Fox"] = e["Fox"] = "Fox@\\textsc{Fox, Armando}";
31 e["Frederik Vermeulen"] = e["Vermeulen"] = "Vermeulen@\\textsc{Vermeulen, Frederik}";
32 e["Marc G. Graff"] = e["Graff"] = "Graff@\\textsc{Graff, Marc G.}";
33 e["Munawar Hafiz"] = e["Hafiz"] = "Hafiz@\\textsc{Hafiz, Munawar}";
34 e["Philip Hazel"] = e["Hazel"] = "Hazel@\\textsc{Hazel, Philip}";
35 e["Ian R. Justman"] = e["Justman"] = "Justman@\\textsc{Justman, Ian R.}";
36 e["Jesse Freund"] = e["Freund"] = "Freund@\\textsc{Freund, Jesse}";
37 e["Jon Postel"] = e["Postel"] = "Postel@\\textsc{Postel, Jon}";
38 e["Jonathan de Boyne Pollard"] = e["de Boyne Pollard"] = "de Boyne Pollard@\\textsc{de Boyne Pollard, Jonathan}";
39 e["Stephen H. Kan"] = e["Kan"] = "Kan@\\textsc{Kan, Stephen H.}";
40 e["Brian W. Kernighan"] = e["Kernighan"] = "Kernighan@\\textsc{Kernighan, Brian W.}";
41 e["Nils Lenke"] = e["Lenke"] = "Lenke@\\textsc{Lenke, Nils}";
42 e["Markus Schnalke"] = e["Schnalke"] = "Schnalke@\\textsc{Schnalke, Markus}";
43 e["Michael Osterman"] = e["Osterman"] = "Osterman@\\textsc{Osterman, Michael}";
44 e["Rob Pike"] = e["Pike"] = "Pike@\\textsc{Pike, Rob}";
45 e["Eric S. Raymond"] = e["Raymond"] = "Raymond@\\textsc{Raymond, Eric S.}";
46 e["Dennis Ritchie"] = e["Ritchie"] = "Ritchie@\\textsc{Ritchie, Dennis}";
47 e["Peter Schmitz"] = e["Schmitz"] = "Schmitz@\\textsc{Schmitz, Peter}";
48 e["Ken Simpson"] = e["Simpson"] = "Simpson@\\textsc{Simpson, Ken}";
49 e["Diomidis Spinellis"] = e["Spinellis"] = "Spinellis@\\textsc{Spinellis, Diomidis}";
50 e["Andrew S. Tanenbaum"] = e["Tanenbaum"] = "Tanenbaum@\\textsc{Tanenbaum, Andrew S.}";
51 e["Kenneth R. van Wyk"] = e["van Wyk"] = "van Wyk@\\textsc{van Wyk, Kenneth R.}";
52 e["Wietse Venema"] = e["Venema"] = "Venema@\\textsc{Venema, Wietse}";
53 }
57 {
58 cur = $0
59 gsub(/\\nobreakspace \{\}/, " ", cur);
60 gsub(/\\ /, " ", cur);
61 sub(/[^{]*{/, "", cur);
62 sub(/[}!].*/, "", cur);
63 if (e[cur]) {
64 sub(/{[^}!]*/, "{" e[cur]);
65 }
66 print;
67 }