view thesis/scripts/improve-index.sh @ 395:0d78755132b7

lots of small fixes and cleanups
author meillo@marmaro.de
date Sat, 07 Feb 2009 14:47:27 +0100 (2009-02-07)
parents 6477e7827617
children
line wrap: on
line source
#!/bin/sh
#
# improve index source data and generate the index

echo "improve-index.sh"
echo "@: $@"

if [ $# -eq 0 ] ; then
	echo "usage: $0 <idxinput> ..."
	exit 1
fi

for i in "$@" ; do
	echo "processing $i.idx"
	mv "$i.idx" "$i.unprocessed.idx"
	<"$i.unprocessed.idx" `dirname $0`/improve-index.awk >"$i.idx"
done

makeindex "$@"