xref: /titanic_52/usr/src/cmd/refer/indxbib.sh (revision 7fd791373689a6af05e27efec3b1ab556e02aa23)
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#! /usr/bin/sh
13
14#pragma ident	"%Z%%M%	%I%	%E% SMI"
15#
16#	indxbib sh script
17#
18if test $1
19	then /usr/lib/refer/mkey $* | /usr/lib/refer/inv _$1
20	mv _$1.ia $1.ia
21	mv _$1.ib $1.ib
22	mv _$1.ic $1.ic
23else
24	echo 'Usage:  indxbib database [ ... ]
25	first argument is the basename for indexes
26	indexes will be called database.{ia,ib,ic}'
27fi
28