xref: /illumos-gate/usr/src/cmd/refer/indxbib.sh (revision 306990466301759c88d84c51c57b57ca930a3635)
1#!/usr/bin/sh
2#	Copyright 1988 Sun Microsystems, Inc. All rights reserved.
3#	Use is subject to license terms.
4
5#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
6#	All Rights Reserved
7
8#	Copyright (c) 1980 Regents of the University of California.
9#	All rights reserved. The Berkeley software License Agreement
10#	specifies the terms and conditions for redistribution.
11
12#
13#	indxbib sh script
14#
15if test $1
16	then /usr/lib/refer/mkey $* | /usr/lib/refer/inv _$1
17	mv _$1.ia $1.ia
18	mv _$1.ib $1.ib
19	mv _$1.ic $1.ic
20else
21	echo 'Usage:  indxbib database [ ... ]
22	first argument is the basename for indexes
23	indexes will be called database.{ia,ib,ic}'
24fi
25