docs/diploma

annotate thesis/scripts/improve-index.awk @ 409:ca763bd8c809

Added tag final version which I handed in for changeset ee7211546c02
author meillo@marmaro.de
date Wed, 11 Feb 2009 08:55:32 +0100
parents e57129f57faa
children
rev   line source
meillo@372 1 #!/usr/bin/awk -f
meillo@372 2 #
meillo@372 3 # improve the index
meillo@372 4
meillo@402 5
meillo@372 6 BEGIN{
meillo@402 7
meillo@402 8 # special formating for entries
meillo@402 9 e["mta"] = "Mail Transfer Agent (\\NAME{MTA})";
meillo@402 10 e["mua"] = "Mail User Agent (\\NAME{MUA})";
meillo@402 11 e["mda"] = "Mail Delivery Agent (\\NAME{MDA})";
meillo@402 12 e["smtp"] = "Simple Mail Transfer Protocol (\\NAME{SMTP})";
meillo@402 13 e["ietf"] = "ietf@\\NAME{IETF}";
meillo@373 14 e["debian"] = "Debian";
meillo@373 15 e["ascii"] = "ascii@\\NAME{ASCII}";
meillo@373 16 e["gpl"] = "General Public License (\\NAME{GPL})";
meillo@402 17 e["auth"] = "authentication";
meillo@402 18 e["bsd"] = "Berkeley Software Distribution (\\NAME{BSD})";
meillo@402 19 e["c"] = "C programming language";
meillo@402 20 e["changing ip addresses"] = "changing \\NAME{IP} addresses";
meillo@402 21 e["cyrus sasl"] = "cyrus \\NAME{SASL}";
meillo@402 22 e["dns blacklist"] = "dns blacklist@\\NAME{DNS} blacklist";
meillo@402 23 e["dynamic dns"] = "dynamic \\NAME{DNS}";
meillo@402 24 e["enc"] = "encryption";
meillo@402 25 e["fax"] = "telefax";
meillo@402 26 e["imap"] = "imap@\\NAME{IMAP}";
meillo@402 27 e["ipc"] = "Inter-Process Communication (\\NAME{IPC})";
meillo@402 28 e["isp"] = "Internet Service Provider (\\NAME{ISP})";
meillo@402 29 e["mime"] = "mime@\\NAME{MIME}";
meillo@402 30 e["mmdf"] = "mmdf@\\NAME{MMDF}";
meillo@402 31 e["pam"] = "pam@\\NAME{PAM}";
meillo@402 32 e["pop3"] = "pop3@\\NAME{POP3}";
meillo@402 33 e["relay-only mta"] = "relay-only \\NAME{MTA}";
meillo@402 34 e["rfc"] = "Request for Comments (\\NAME{RFC})";
meillo@402 35 e["sasl"] = "sasl@\\NAME{SASL}";
meillo@402 36 e["smtps"] = "smtps@\\NAME{SMTPS}";
meillo@402 37 e["starttls"] = "starttls@\\NAME{STARTTLS}";
meillo@402 38 e["swot analysis"] = "swot analysis@\\NAME{SWOT} analysis";
meillo@402 39 e["tcp socket"] = "tcp socket@\\NAME{TCP} socket";
meillo@402 40 e["tcp wrapper"] = "tcp wrapper@\\NAME{TCP} Wrapper";
meillo@402 41 e["tls"] = "Transport Layer Security (\\NAME{TLS})";
meillo@402 42 e["uc"] = "Unified Communication";
meillo@402 43 e["um"] = "Unified Messaging";
meillo@402 44 e["uucp"] = "uucp@\\NAME{UUCP}";
meillo@402 45 e["setuid"] = "setuid/setgid";
meillo@373 46
meillo@402 47
meillo@402 48 # persons
meillo@373 49 e["Oliver Kurth"] = e["Kurth"] = "Kurth@\\textsc{Kurth, Oliver}";
meillo@373 50 e["Adam Back"] = e["Back"] = "Back@\\textsc{Back, Adam}";
meillo@373 51 e["Eric Allman"] = e["Allman"] = "Allman@\\textsc{Allman, Eric}";
meillo@373 52 e["Stas Bekman"] = e["Bekman"] = "Bekman@\\textsc{Bekman, Stas}";
meillo@373 53 e["Daniel J. Bernstein"] = e["Bernstein"] = "Bernstein@\\textsc{Bernstein, Daniel J.}";
meillo@373 54 e["Bryan Costales"] = e["Costales"] = "Costales@\\textsc{Costales, Bryan}";
meillo@373 55 e["George Candea"] = e["Candea"] = "Candea@\\textsc{Candea, George}";
meillo@373 56 e["Dan Shearer"] = e["Shearer"] = "Shearer@\\textsc{Shearer, Dan}";
meillo@373 57 e["Dave Sill"] = e["Sill"] = "Sill@\\textsc{Sill, Dave}";
meillo@373 58 e["David A. Wheeler"] = e["Wheeler"] = "Wheeler@\\textsc{Wheeler, David A.}";
meillo@373 59 e["Kyle D. Dent"] = e["Dent"] = "Dent@\\textsc{Dent, Kyle D.}";
meillo@373 60 e["Derek Broughton"] = e["Broughton"] = "Broughton@\\textsc{Broughton, Derek}";
meillo@373 61 e["Doug McIlroy"] = e["McIlroy"] = "McIlroy@\\textsc{McIlroy, Doug}";
meillo@373 62 e["Peter Eisentraut"] = e["Eisentraut"] = "Eisentraut@\\textsc{Eisentraut, Peter}";
meillo@373 63 e["Tony Finch"] = e["Finch"] = "Finch@\\textsc{Finch, Tony}";
meillo@373 64 e["Armando Fox"] = e["Fox"] = "Fox@\\textsc{Fox, Armando}";
meillo@373 65 e["Frederik Vermeulen"] = e["Vermeulen"] = "Vermeulen@\\textsc{Vermeulen, Frederik}";
meillo@373 66 e["Marc G. Graff"] = e["Graff"] = "Graff@\\textsc{Graff, Marc G.}";
meillo@373 67 e["Munawar Hafiz"] = e["Hafiz"] = "Hafiz@\\textsc{Hafiz, Munawar}";
meillo@373 68 e["Philip Hazel"] = e["Hazel"] = "Hazel@\\textsc{Hazel, Philip}";
meillo@373 69 e["Ian R. Justman"] = e["Justman"] = "Justman@\\textsc{Justman, Ian R.}";
meillo@373 70 e["Jesse Freund"] = e["Freund"] = "Freund@\\textsc{Freund, Jesse}";
meillo@373 71 e["Jon Postel"] = e["Postel"] = "Postel@\\textsc{Postel, Jon}";
meillo@373 72 e["Jonathan de Boyne Pollard"] = e["de Boyne Pollard"] = "de Boyne Pollard@\\textsc{de Boyne Pollard, Jonathan}";
meillo@373 73 e["Stephen H. Kan"] = e["Kan"] = "Kan@\\textsc{Kan, Stephen H.}";
meillo@373 74 e["Brian W. Kernighan"] = e["Kernighan"] = "Kernighan@\\textsc{Kernighan, Brian W.}";
meillo@373 75 e["Nils Lenke"] = e["Lenke"] = "Lenke@\\textsc{Lenke, Nils}";
meillo@373 76 e["Markus Schnalke"] = e["Schnalke"] = "Schnalke@\\textsc{Schnalke, Markus}";
meillo@373 77 e["Michael Osterman"] = e["Osterman"] = "Osterman@\\textsc{Osterman, Michael}";
meillo@373 78 e["Rob Pike"] = e["Pike"] = "Pike@\\textsc{Pike, Rob}";
meillo@373 79 e["Eric S. Raymond"] = e["Raymond"] = "Raymond@\\textsc{Raymond, Eric S.}";
meillo@373 80 e["Dennis Ritchie"] = e["Ritchie"] = "Ritchie@\\textsc{Ritchie, Dennis}";
meillo@373 81 e["Peter Schmitz"] = e["Schmitz"] = "Schmitz@\\textsc{Schmitz, Peter}";
meillo@373 82 e["Ken Simpson"] = e["Simpson"] = "Simpson@\\textsc{Simpson, Ken}";
meillo@373 83 e["Diomidis Spinellis"] = e["Spinellis"] = "Spinellis@\\textsc{Spinellis, Diomidis}";
meillo@373 84 e["Andrew S. Tanenbaum"] = e["Tanenbaum"] = "Tanenbaum@\\textsc{Tanenbaum, Andrew S.}";
meillo@373 85 e["Kenneth R. van Wyk"] = e["van Wyk"] = "van Wyk@\\textsc{van Wyk, Kenneth R.}";
meillo@402 86 e["Christian Langbein"] = e["Langbein"] = "Langbein@\\textsc{Langbein, Christian}";
meillo@402 87 e["Dad"] = "Schnalke@\\textsc{Schnalke, R\\\"udiger}";
meillo@402 88 e["Hans-J\\\"org Schaaf"] = e["Schaaf"] = "Schaaf@\\textsc{Schaaf, Hans-J\\\"org}";
meillo@402 89 e["Henry Atting"] = e["Atting"] = "Atting@\\textsc{Atting, Henry}";
meillo@402 90 e["Heraclitus"] = "Heraclitus@\\textsc{Heraclitus}";
meillo@402 91 e["James Stenard"] = e["Stenard"] = "Stenard@\\textsc{Stenard, James}";
meillo@402 92 e["Joachim Breitner"] = e["Breitner"] = "Breitner@\\textsc{Breitner, Joachim}";
meillo@402 93 e["Jochen Roth"] = e["Roth"] = "Roth@\\textsc{Roth, Jochen}";
meillo@402 94 e["Julian Forster"] = e["Forster"] = "Forster@\\textsc{Forster, Julian}";
meillo@402 95 e["Lydi"] = "Steffan@\\textsc{Steffan, Lydi}";
meillo@402 96 e["Marc Geis"] = e["Geis"] = "Geis@\\textsc{Geis, Marc}";
meillo@402 97 e["Markus Sch\\\"affter"] = e["Sch\\\"affter"] = "Schaeffter@\\textsc{Sch\\\"affter, Markus}";
meillo@402 98 e["Roger Schietzel"] = e["Schietzel"] = "Schietzel@\\textsc{Schietzel, Roger}";
meillo@402 99 e["Stephen C. Johnson"] = e["Johnson"] = "Johnson@\\textsc{Johnson, Stephen C.}";
meillo@373 100 e["Wietse Venema"] = e["Venema"] = "Venema@\\textsc{Venema, Wietse}";
meillo@402 101 e["Volkmar Kese"] = e["Kese"] = "Kese@\\textsc{Kese, Volkmar}";
meillo@408 102 e["Wolfgang Leister"] = e["Leister"] = "Leister@\\textsc{Leister, Wolfgang}";
meillo@402 103
meillo@402 104
meillo@402 105 # subentries
meillo@402 106 s["sendmailx"] = "sendmail X";
meillo@402 107 s["meta1"] = "MeTA1";
meillo@402 108 s["smtp-after-pop"] = "\\NAME{SMTP}-after-\\NAME{POP}";
meillo@402 109 s["smtp-auth"] = "\\NAME{SMTP-AUTH}";
meillo@402 110
meillo@402 111
meillo@402 112 # aliases
meillo@402 113 a["ifdef"] = "ifdef|see{conditional compilation}";
meillo@402 114 a["envelope"] = "envelope|see{mail message}";
meillo@402 115 a["header"] = "header|see{mail message}";
meillo@402 116 a["body"] = "body|see{mail message}";
meillo@402 117 a["ssl"] = "ssl@\\NAME{SSL}|see{\\NAME{TLS}}";
meillo@402 118 a["forwarder"] = "forwarder|see{relay-only \\NAME{MTA}}";
meillo@402 119 a["junk mail"] = "junk mail|see{spam}";
meillo@402 120 a["fax"] = "fax|see{telefax}";
meillo@402 121
meillo@372 122 }
meillo@372 123
meillo@373 124
meillo@373 125
meillo@372 126 {
meillo@402 127 gsub(/\\ /, " ");
meillo@402 128 gsub(/\\nobreakspace \{\}/, " ");
meillo@402 129 gsub(/\\discretionary \{-\}\{\}\{\}/, "");
meillo@402 130
meillo@402 131 entry = $0
meillo@402 132 sub(/[^{]*{/, "", entry);
meillo@402 133 sub(/[}!].*/, "", entry);
meillo@402 134 if (e[entry]) {
meillo@402 135 sub(/{[^}!]*/, "{" e[entry]);
meillo@372 136 }
meillo@402 137
meillo@402 138 subentry = $0
meillo@402 139 sub(/[^!]*!/, "", subentry);
meillo@402 140 sub(/}.*/, "", subentry);
meillo@402 141 if (s[subentry]) {
meillo@402 142 sub(/![^}]*/, "!" s[subentry]);
meillo@402 143 }
meillo@402 144
meillo@372 145 print;
meillo@372 146 }
meillo@402 147
meillo@402 148
meillo@402 149
meillo@402 150 END {
meillo@402 151 # aliases
meillo@402 152 for (i in a) {
meillo@402 153 print "\\indexentry{" a[i] "}{0}";
meillo@402 154 }
meillo@402 155 }