#!/bin/sh
##### rcsid = @(#)$Id: mksbkdx,v 1.5 1999/11/14 21:12:44 crath Exp $
#####
##
##	mksbkdx - Produce a songbook style .kdx file from a .kIdx file.
##
##      Version 3.1, 13 November, 1999
##
##      Copyright 1992--99 Christopher Rath <crath@cyberus.ca>
##
##	You may distribute under the terms of the Artistic License,
##	as specified in the relnotes.txt file.
##
##	Take a .kIdx file produced by one of the songbook styles and
##	turn it into a .kdx file for final formatting into an index 
##	of songs by key.
##
#####
#####

###
# Check that the proper parameters were input.
###
if [ "$1" = "" ]
then
  echo USAGE: $0 jobname
fi

###
# Call makeindex to do the required munging.
##
makeindex -s songbook.ist -o $1.kdx $1.kIdx

###
# Tell the user what the new filename is.
###
echo " "
echo "The new Index file is called \`$1.kdx'."

###
# End of script.
###
