#!/bin/sh

# $Id$

# This is a shell wrapper for the shak program itself.
# It sets the variables, which are set by the configuration
# files, directly, and then uses options to disable
# the defaults and reading the config files.
# This speeds up execution of shak.

# You can rename this file to any name you want,
# it is not part of shak, just an example user program
# that uses shak as a tool.


#  Here is an example config file.

#domain:lowland.com
#shakpath:/usr/local/lib/shak
#loghost:localhost
#indexhost:low01
#indexpath:/var/adm/backup/shak/index
#tapehost:low00
#device:/dev/nst0
#userpath:/usr/local/sbin/backup/shak
#logbasename:LOG_
#logpath:/var/adm/backup/shak/log
#remsh:rsh

#  Here are the variable assignments
SHAK_DOMAIN=lowland.com
SHAK_SHAKPATH=/usr/local/lib/shak
SHAK_LOGHOST=localhost
SHAK_INDEXHOST=low01
SHAK_INDEXPATH=/var/adm/backup/shak/index
SHAK_TAPEHOST=low00
SHAK_TAPEDEVICE=/dev/nst0
SHAK_USERPATH=/usr/local/sbin/backup/shak
SHAK_LOGBASENAME=LOG_
SHAK_LOGPATH=/var/adm/backup/shak/log
SHAK_REMSH=rsh
SHAK_USEHEADERS=yes


# Here, the variables are exported.
export SHAK_DOMAIN
export SHAK_SHAKPATH
export SHAK_LOGHOST
export SHAK_INDEXHOST
export SHAK_INDEXPATH
export SHAK_TAPEHOST
export SHAK_TAPEDEVICE
export SHAK_USERPATH
export SHAK_LOGBASENAME
export SHAK_LOGPATH
export SHAK_REMSH
export SHAK_USEHEADERS

# Now set some of the USER variables for
# demonstration purposes.

SHAK_USER000=zero
SHAK_USER001=one
SHAK_USER002="*"

export SHAK_USER000
export SHAK_USER001
export SHAK_USER002

/usr/sbin/shak -ll "$@"

exit $?

