# suck in user's configuration
 @CONFIG@
 
-WHICHDB?="--with-sqlite"
+WHICHDB?="--with-sqlite=${SQLITE_DIR}"
 
 first_rule: all
 
 
-     Bacula Regression
-      Kern Sibbald
-       April 2003
+      Bacula Regression
+        Kern Sibbald
+        December 2003
 
 This is Bacula's regression script directory.  At this time
 (December 2003), it is still in development, so all the tests are
 
 # Where to get the source to be tested
 BACULA_SOURCE="${HOME}/bacula/k"
 
-# Where to send email  !!!!! Change me !!!!!!!
+# Where to send email   !!!!! Change me !!!!!!!
 EMAIL=kern+ok@sibbald.com
 
-# Full path where to find sqlite
-DEPKGS="${HOME}/bacula/depkgs/sqlite"
+# Full "default" path where to find sqlite (no quotes!)
+SQLITE_DIR=${HOME}/bacula/depkgs/sqlite
 
 TAPE_DRIVE="/dev/nst0"
 # if you don't have an autochanger set AUTOCHANGER to /dev/null
 
+#
+# Prototype personal configuration file for the regression 
+#  scripts.  Either edit this file directly, or better copy
+#  it elsewhere so it won't get overwritten.          
+#
 
+#
 # Where to get the source to be tested
-BACULA_SOURCE=""
+#
+BACULA_SOURCE=
 
 # Where to send email messages
-EMAIL=""
+#
+EMAIL=
 
-# Full path where to find sqlite
-DEPKGS="${HOME}/bacula/depkgs/sqlite"
+# Full "default" path where to find sqlite. 
+# This is only used if you do not specify a database override on the
+# make command.  
+#
+#    N.B. DON'T PUT QOUTES AROUND THE PATH.
+#
+SQLITE_DIR=${HOME}/bacula/depkgs/sqlite
 
-TAPE_DRIVE="/dev/nst0"
+#
+# The device name of your tape drive if you have one
+#
+TAPE_DRIVE=/dev/nst0
 
+#
 # if you don't have an autochanger set AUTOCHANGER to /dev/null
-AUTOCHANGER="/dev/sg0"
+#
+AUTOCHANGER=/dev/sg0
 
+#
 # This must be the path to the autochanger including its name
-AUTOCHANGER_PATH="/bin/mtx"
+#
+AUTOCHANGER_PATH=/bin/mtx
 
     --with-subsys-dir=$1/working \
     --enable-smartalloc \
     --disable-readline \
-    $4 \
     --with-working-dir=$1/working \
-    --with-dump-email=$3 \
-    --with-job-email=$3 \
+    --with-dump-email=$2 \
+    --with-job-email=$2 \
+    $3 \
     --with-baseport=8101 \
-       --with-tcp-wrappers
+    --with-tcp-wrappers
 
 exit 0
 
 # Script to setup running Bacula regression tests
 #
 cwd=`pwd`
-if [ $# != 4 ] ; then
-   echo "Incorrect number of arguments. Need:"
-   echo "setup bacula-src depkgs email-address --with-DBNAME"
+if [ $# != 3 ] ; then
+   echo "Incorrect number of arguments. Got $#. Need:"
+   echo "setup bacula-src email-address --with-DBNAME"
    echo " "
    exit 1
 fi
    echo " "
    exit 1
 fi
-if [ ! -d $2 ] ; then
-   cd ..
-   cwd=`pwd`
-   echo "The regression scripts require DEPKGS as arg 2 but not found!" 
-   echo " "
-   exit 1
-fi
 rm -rf build bin
 # Copy new source
 cp -rp $1 build
 cd build
 rm -f Makefile config.cache
 # Run Bacula configuration, make, install
-./regress-config ${cwd} $2 $3 $4
+./regress-config ${cwd} $2 $3
 make
 make install
 cp src/tools/testls ../bin