@rem **************************************************************************
@rem $Novell: jldapschema.bat,v 1.3 2003/01/24 20:17:28 $
@rem
@rem Copyright (C) 1999 - 2003 Novell, Inc. All Rights Reserved.
@rem
@rem THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
@rem TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
@rem TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
@rem AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
@rem IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
@rem OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
@rem PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
@rem THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
@rem ***************************************************************************
@rem Script to run the listschema utility

@rem Note: This script assumes the cmd.exe capabilities of Windows 2000 or greater

@echo off

rem get bin directory
set BINPATH=%~dp0

rem get lib directory
call getpath %BINPATH%..\lib
set LIBPATH=%CWD%

rem save classpath, then add to classpath the ldap.jar
set CPATH=%CLASSPATH%
set CLASSPATH=%CPATH%;%LIBPATH%\ldap.jar;%LIBPATH%\utilities.jar

rem start the search program
java ListSchema %*

rem restore CLASSPATH to its previous value
set CLASSPATH=%CPATH%

rem cleanup our temporary variables
set BINPATH=
set LIBPATH=
set CPATH=
set CWD=
