-if test $# -eq 0 ; then
- SRCDIR="."
-else
- SRCDIR=$1; shift
-fi
-if test $# -eq 0 ; then
- BACKEND=ldbm
-else
- BACKEND=$1; shift
-fi
DATADIR=$SRCDIR/data
-PROGDIR=$SRCDIR/progs
+PROGDIR=./progs
if test "$BACKEND" = "bdb2" ; then
LDIF2LDBM=../servers/slapd/tools/ldif2ldbm-bdb2
echo "running defines.sh $SRCDIR $BDB2"
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Datadir is $DATADIR"
echo "running defines.sh $SRCDIR $BDB2"
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Datadir is $DATADIR"
BDB2=$1; shift
fi
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Cleaning up in $DBDIR..."
BDB2=$1; shift
fi
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Cleaning up in $DBDIR..."
BDB2=$1; shift
fi
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Cleaning up in $DBDIR..."
BDB2=$1; shift
fi
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Cleaning up in $DBDIR..."
BDB2=$1; shift
fi
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
if test ! -x $SLURPD ; then
echo ">>>>> $SLURPD is not executable or do not exist."
echo "running defines.sh $SRCDIR $BDB2"
-. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
+. $SRCDIR/scripts/defines.sh
echo "Datadir is $DATADIR"