#!/bin/sh
# Author:   Thien Ho <thien@bibliofiche.com>
# Created:  Tue, Feb 21, 2006 @ 13:47:18 EST
# Updated:
# -

ZPORT=210

# Source common functions
#. /data/idzebra-210/zebra.function
. /etc/opals/function

if [ $# -eq 1 ]; then
    updateIndex $1
elif [ $# -ge 2 ]; then # update specified directories
    zdb=$1
    shift
    for zdir in "$@"; do
        updateIndex $zdb $zdir
    done
else
    echo ERROR::$SCRIPTNAME: invalid parameters \'$@\'
fi

exit
