xref: /titanic_50/usr/src/cmd/refer/indxbib.sh (revision 29e83d4b25fd82feb8e0e0fbe89f7e2a8438533d)
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