head	1.7;
access;
symbols
	TIGRIS_1_1_0RC2:1.7
	TIGRIS_1_1_0RC1:1.7
	TIGRIS_1_1:1.7.0.8
	TIGRIS_1_0_8:1.7
	TIGRIS_1_0_8RC3:1.7
	TIGRIS_1_0_8RC2:1.7
	TIGRIS_1_0_8RC1:1.7
	TIGRIS_1_0_7:1.7
	TIGRIS_1_0_7RC3:1.7
	TIGRIS_1_0_7RC2:1.7
	TIGRIS_1_0_7RC1:1.7
	TIGRIS_1_0_6:1.7
	TIGRIS_1_0_6RC5:1.7
	TIGRIS_1_0_6RC4:1.7
	TIGRIS_1_0_6RC3:1.7
	TIGRIS_1_0_6RC2:1.7
	TIGRIS_1_0_6RC1:1.7
	TIGRIS_1_0_5:1.7
	TIGRIS_1_0_5RC6:1.7
	TIGRIS_1_0_5RC5:1.7
	TIGRIS_1_0_5RC4:1.7
	TIGRIS_1_0_5RC3:1.7
	TIGRIS_1_0_5RC2:1.7
	TIGRIS_1_0_5RC1:1.7
	TIGRIS_1_0_4:1.7
	TIGRIS_1_0_3:1.7
	TIGRIS_1_0_2:1.7
	TIGRIS_1_0_1:1.7
	TIGRIS_1_0:1.7.0.10
	TIGRIS_1_0_0:1.7
	TIGRIS_1_0_0_RC1:1.7.0.6
	HELM_PEER_PORT_BRANCH:1.7.0.4
	TIGRIS_0_9_2_4:1.7
	TIGRIS_0_9_2_3:1.7
	TIGRIS_0_9_2:1.7.0.2
	TIGRIS_0_9_0:1.6.0.2
	TIGRIS_0_8_4:1.5.0.2
	TIGRIS_710_FF:1.1
	TIGRIS_706:1.1
	TIGRIS_SEP_13_2000:1.1.0.2
	TIGRIS_705:1.1
	TIGRIS_704:1.1
	TIGRIS_703:1.1
	TIGRIS_702:1.1
	TIGRIS_701:1.1;
locks; strict;
comment	@# @;


1.7
date	2000.12.28.21.01.09;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.13.22.52.01;	author dlr;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.30.20.48.15;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.18.07.04.07;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.09.04.06.13;	author edk;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.09.03.36.49;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.12.20.06.54;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Better output.
@
text
@#!/bin/sh
# -*- bash -*- script which generates a Tigris ctags/etags file.
#
# $Id: mktags,v 1.6 2000/12/13 22:52:01 dlr Exp $

# Choose binary.
if [ ! -z "${USE_CTAGS}" ]; then
    TAGS='ctags'
    TAGS_FILE='tags'
elif [ `which etags 2> /dev/null` ]; then
    TAGS='etags'
else
    TAGS='ctags -e'
fi

TAGS_FILE='TAGS'
FILE_MASK='*.java'

if [ ! -z "${SANDBOX}" ]; then
    # Preserve the previous tags file.
    if [ -e ${TAGS_FILE} ]; then
        mv ${TAGS_FILE} ${TAGS_FILE}.old
    fi

    # Refresh the tags file.
    echo -n "Building ${TAGS_FILE} file..."
    find ${SANDBOX} -name "${FILE_MASK}" -print | ${TAGS} -R -L -
    echo 'done'

    exit 0
else
    echo "${0}: Your SANDBOX environment variable must be set"
    exit 1
fi
@


1.6
log
@Work for Emacs users even on machines with no etags binary installed.
@
text
@d4 1
a4 1
# $Id: mktags,v 1.5 2000/11/30 20:48:15 dlr Exp $
d10 1
a10 1
elif [ `which etags` ]; then
d26 1
a26 1
    echo -n "Building ${TAGS_FILE}..."
@


1.5
log
@More efficient refactoring of our ctags/etags generation script.
@
text
@d4 1
a4 5
# $Id: $

TAGS='etags'
TAGS_FILE='TAGS'
FILE_MASK='*.java'
d6 1
d10 4
d15 3
@


1.4
log
@curlies make me happy
@
text
@d2 3
a4 1
# Generates a Tigris etags TAGS file.
d8 1
d10 1
a10 1
if [ ! -z "${USE_CTAGS}" ] ; then
a13 3
if [ -e ${TAGS_FILE} ] ; then
    mv ${TAGS_FILE} ${TAGS_FILE}.old
fi
d16 10
a25 3
    for f in `find ${SANDBOX} -name '*.java' -print`; do
        ${TAGS} --append ${f}
    done
@


1.3
log
@provide an env variable for using ctags instead of etags (i figure i'll
mostly be using this from a cron, & it'll work alright for emacs
users by default) -- and move the tags file if it's there already
(so as to avoid having it grow without bound ;-).
@
text
@d4 2
a5 2
TAGS=etags
TAGS_FILE=TAGS
d7 3
a9 3
if [ ! -z "$USE_CTAGS" ] ; then
    TAGS=ctags
    TAGS_FILE=tags
d11 2
a12 2
if [ -e $TAGS_FILE ] ; then
    mv $TAGS_FILE $TAGS_FILE.old
d17 1
a17 1
        $TAGS --append ${f}
d21 1
a21 1
    echo "$0: Your SANDBOX environment variable must be set"
@


1.2
log
@Now this script will actually handle large numbers of files.
@
text
@d4 11
d17 1
a17 1
        etags --append ${f}
@


1.1
log
@Creates an etags TAGS file of from the Tigris Java source code.
@
text
@d5 3
a7 1
    find ${SANDBOX} -name '*.java' -print | xargs etags
@

