]> git.sur5r.net Git - openldap/blob - tests/scripts/conf.sh
fix last commit
[openldap] / tests / scripts / conf.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2003 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15 if [ x"$MONITORDB" = x"yes" ] ; then
16         MON=monitor
17 else
18         MON=nomonitor
19 fi
20 if [ x"$BACKENDTYPE" = x"mod" ]; then
21         MODULELOAD="moduleload  back_${BACKEND}.la"
22 fi
23 sed -e "s/@BACKEND@/${BACKEND}/"        \
24         -e "s/@MODULELOAD@/${MODULELOAD}/" \
25         -e "s/^#${BACKEND}#//"                  \
26         -e "s/^#${MON}#//"                              \
27         -e "s/@CACHETTL@/${CACHETTL}/"   \
28         -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"