docs/diploma
annotate thesis/scripts/improve-index.sh @ 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 |
rev | line source |
---|---|
meillo@372 | 1 #!/bin/sh |
meillo@372 | 2 # |
meillo@372 | 3 # improve index source data and generate the index |
meillo@372 | 4 |
meillo@372 | 5 echo "improve-index.sh" |
meillo@372 | 6 echo "@: $@" |
meillo@372 | 7 |
meillo@372 | 8 if [ $# -eq 0 ] ; then |
meillo@372 | 9 echo "usage: $0 <idxinput> ..." |
meillo@372 | 10 exit 1 |
meillo@372 | 11 fi |
meillo@372 | 12 |
meillo@372 | 13 for i in "$@" ; do |
meillo@372 | 14 echo "processing $i.idx" |
meillo@372 | 15 mv "$i.idx" "$i.unprocessed.idx" |
meillo@372 | 16 <"$i.unprocessed.idx" `dirname $0`/improve-index.awk >"$i.idx" |
meillo@372 | 17 done |
meillo@372 | 18 |
meillo@372 | 19 makeindex "$@" |