#!/bin/sh

##
## Note: to run with the Sun JDK, you should remove kwiz.jar from the path
##

## WIZROOT defined = classes and config taken from the given directory.

if [ -n "$WIZROOT" ] ; then
 export CLASSPATH=$WIZROOT/classes:$WIZROOT/klasses ;
 export WIZCONF=$WIZROOT/wiz.conf ;
 export WIZICONS=$WIZROOT/lib/icons/ ;
else
  export CLASSPATH=/usr/share/wiz/kwiz.jar:/usr/share/wiz/wiz.jar ;
  export WIZCONF=/etc/wiz/wiz.conf
  export WIZICONS=/usr/share/wiz/icons/
fi

kaffe -Droot=$WIZROOT -Dconf=$WIZCONF -Dicons=$WIZICONS com.mandrakesoft.wizard.creator.Creator $*

