#!/bin/sh
HERE=`pwd`
TCL_LIBRARY=$HERE/tcl
TK_LIBRARY=$HERE/tk

EXECCIRCUS=circus-041-static

cat << _EOT

  Some tips:


  Check the cIRCus homepage: http://www.nijenrode.nl/~ivo/circus/

  Use $0 -d to generate debugging output (i.e. when reporting bugs)

  You can set your default server(s), nickname, ircname etc. using
  environment variables, or by editing the .circusrc file

  For example: IRCSERVER="irc.pi.net:7000"; export IRCSERVER
           or: setenv IRCSERVER "irc.pi.net:7000"
	   for (t)csh users.

  Available environment variables are:
  IRCNICK
  IRCNAME
  IRCLOGIN
  IRCSERVER

  The .circusrc file is also the place to configure all kinds of other
  stuff, for example, notify, colors, keybindings, etc.

_EOT
sleep 1

# You have to install the hush-scripts in a seperate dir somewhere
# and make HUSH_LIBRARY point to it!

HUSH_LIBRARY=$HERE/hush

export TCL_LIBRARY TK_LIBRARY HUSH_LIBRARY

#
# Other environment variables you might want to set:
#
# IRCNICK=YourNick
# IRCNAME="Some cool quote"
# IRCSERVER=YourServer (setting it from the masterwindow doesn't really work :)

# IRCSERVER=irc.xs4all.nl
# export IRCSERVER

#
# This confuses people, it seems..

#if [ "$IRCSERVER" = "" ]; then
#	echo "Warning: no IRCSERVER variable is set, I hope you've "
#	echo "         added one to you .circusrc file"
#fi

#
# You can also play with the .circusrc script

# You might wanna redirect all output to /dev/null

if [ "$1" = "-d" ]; then
	./${EXECCIRCUS} < /dev/null
else
	./${EXECCIRCUS} < /dev/null > /dev/null 2>&1
fi
