view thesis/scripts/improve-index.sh @ 384:acbdd61c4f61

rename 7-summary -> 6-summary
author meillo@marmaro.de
date Fri, 06 Feb 2009 12:11:44 +0100
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 "$@"