Subversion Repositories nw_plus

Compare Revisions

Regard whitespace Rev 48 → Rev 49

/nw_plus/NWinter.bat
60,13 → 60,10
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
 
if not exist "%addondir%\NWINTER.GRP" (
if exist "%exedir%\NWINTER.GRP" (
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
ren "%addondir%\NWINTER.GRP" nwinter.grp
) else (
goto nonwgrp
) )
if "%nwgrpname%"=="" set nwgrpname=nwinter.grp
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" if exist "%exedir%\nwinter_demo.grp" set nwgrpname=nwinter_demo.grp
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" if exist "%addondir%\nwinter_demo.grp" set nwgrpname=nwinter_demo.grp
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" goto nonwgrp
 
if exist nwinter.grp ren nwinter.grp nwinter.grp
call :grpchecksum
127,7 → 124,7
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
set args=%args% -g%nwgrpname% -hnwinter.def -xNWEDuke.con
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
206,11 → 203,15
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
goto :eof
)
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=full && goto :eof
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=demo && goto :eof
pushd .
if exist "%addondir%\%nwgrpname%" cd /d %addondir%
if exist "%exedir%\%nwgrpname%" cd /d %exedir%
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *%nwgrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *%nwgrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
if "%ERRORLEVEL%"=="0" set version=demo && popd && goto :eof
if "%ERRORLEVEL%"=="1" set version=unknown
popd
goto :eof
 
:grpchecksum_results