docs/diploma

annotate thesis/scripts/improve-index.sh @ 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
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 "$@"