summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/songbook/mksbadx
blob: 3695b8f994a0246184ae6fff783f44b879bdaee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
##### rcsid = @(#)$Id: mksbkdx,v 1.10 2003/08/19 23:30:36 christopher Exp $
#####
##
##	mksbadx - Produce a songbook style .adx file from a .aIdx file.
##
##      Version 4.3, 03 February, 2007
##
##      Copyright 1992--2007 Christopher Rath <christopher@rath.ca>
##
##	This package is free software; you can redistribute it and/or
##	modify it under the terms of version 2.1 of the GNU Lesser
##	General Public License as published by the Free Software
##	Foundation.
##
##	This package is distributed in the hope that it will be
##	useful, but WITHOUT ANY WARRANTY; without even the implied
##	warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##	PURPOSE.  See the GNU Lesser General Public License for more
##	details.
##
##	Take a .aIdx file produced by one of the songbook styles and
##	turn it into a .adx 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.adx $1.aIdx

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

###
# End of script.
###