docs/diploma
annotate 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 |
rev | line source |
---|---|
meillo@372 | 1 #!/usr/bin/awk -f |
meillo@372 | 2 # |
meillo@372 | 3 # improve the index |
meillo@372 | 4 |
meillo@372 | 5 BEGIN{ |
meillo@372 | 6 ie["mta"] = "mail transfer agent (\\MTA)"; |
meillo@372 | 7 ie["mua"] = "mail user agent (\\MUA)"; |
meillo@372 | 8 ie["smtp"] = "simple mail transfer protocol (\\SMTP)"; |
meillo@372 | 9 ie["ietf"] = "Internet Engineering Task Force (\\NAME{IETF})"; |
meillo@372 | 10 } |
meillo@372 | 11 |
meillo@372 | 12 { |
meillo@372 | 13 cur = $0 |
meillo@372 | 14 sub("[^{]*{", "", cur); |
meillo@372 | 15 sub("[}!].*", "", cur); |
meillo@372 | 16 if (ie[cur]) { |
meillo@372 | 17 #print ie[cur]; |
meillo@372 | 18 sub("{[^}!]*", "{" ie[cur]); |
meillo@372 | 19 } |
meillo@372 | 20 print; |
meillo@372 | 21 } |