@echo off
@rem **************************************************************************
@rem * --== WARNING ==-- This is a generated file. Do not edit!
@rem *
@rem * From this directory, run this batch file like so:
@rem *
@rem *    .\build_neon debug|release (rebuild)
@rem *
@rem **************************************************************************



@rem **************************************************************************
@rem Neon is instructed to compile and link against the Expat packages within
@rem APR.  (Note that this option was introduced in Neon 0.24.6).
set EXPAT_INC=/home/dave/svn/env/.dist_sandbox/subversion-1.3.2/apr-util/xml/expat/lib

@rem **************************************************************************
cd /D /home/dave/svn/env/.dist_sandbox/subversion-1.3.2/neon
set exitcode=0

if "%2" == "rebuild" goto clean
if not "%2" == "" goto pIIerr
set target=ALL
goto mode

:clean
set target=CLEAN ALL

:mode
if "%1" == "release" goto release
if "%1" == "debug" goto debug
goto pIerr

@rem **************************************************************************
:release
@echo nmake /f neon.mak %target%
nmake /nologo /f neon.mak %target%
if not errorlevel 0 goto err
goto end

@rem **************************************************************************
:debug
@echo nmake /f neon.mak %target% DEBUG_BUILD=Aye %ZLIB_LIB_OPTS%
nmake /nologo /f neon.mak %target% DEBUG_BUILD=Aye %ZLIB_LIB_OPTS%
if not errorlevel 0 goto err
goto end

@rem **************************************************************************
:pIerr
echo error: First parameter should be "release" or "debug"
goto err

@rem **************************************************************************
:pIIerr
echo error: Second parameter should be "rebuild" or empty
goto err


@rem **************************************************************************
:err
set exitcode=1
:end
exit %exitcode%
