Subversion Repositories nw_plus

Rev

Rev 48 | Rev 50 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 49
Line 58... Line 58...
58
if exist nwinter\ set addonhrpdir=%cd%
58
if exist nwinter\ set addonhrpdir=%cd%
59
if exist nw_plus\ goto addondircheck
59
if exist nw_plus\ goto addondircheck
60
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
60
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
61
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
61
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
62
62
63
if not exist "%addondir%\NWINTER.GRP" (
63
if "%nwgrpname%"=="" set nwgrpname=nwinter.grp
64
if exist "%exedir%\NWINTER.GRP" (
64
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" if exist "%exedir%\nwinter_demo.grp" set nwgrpname=nwinter_demo.grp
65
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
65
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" if exist "%addondir%\nwinter_demo.grp" set nwgrpname=nwinter_demo.grp
66
ren "%addondir%\NWINTER.GRP" nwinter.grp
66
if not exist "%exedir%\%nwgrpname%" if not exist "%addondir%\%nwgrpname%" goto nonwgrp
67
) else (
-
 
68
goto nonwgrp
-
 
69
) )
-
 
70
67
71
if exist nwinter.grp ren nwinter.grp nwinter.grp
68
if exist nwinter.grp ren nwinter.grp nwinter.grp
72
call :grpchecksum
69
call :grpchecksum
73
:nonwgrp_return
70
:nonwgrp_return
74
if not "%version%"=="demo" (
71
if not "%version%"=="demo" (
Line 125... Line 122...
125
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
122
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
126
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
123
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
127
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
124
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
128
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
125
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
129
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
126
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
130
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
127
set args=%args% -g%nwgrpname% -hnwinter.def -xNWEDuke.con
131
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
128
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
132
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
129
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
133
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
130
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
134
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
131
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
135
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
132
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
Line 204... Line 201...
204
:grpchecksum
201
:grpchecksum
205
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
202
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
206
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
203
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
207
goto :eof
204
goto :eof
208
)
205
)
-
 
206
pushd .
-
 
207
if exist "%addondir%\%nwgrpname%" cd /d %addondir%
-
 
208
if exist "%exedir%\%nwgrpname%" cd /d %exedir%
209
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
209
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *%nwgrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
210
if "%ERRORLEVEL%"=="0" set version=full && goto :eof
210
if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof
211
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
211
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *%nwgrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
212
if "%ERRORLEVEL%"=="0" set version=demo && goto :eof
212
if "%ERRORLEVEL%"=="0" set version=demo && popd && goto :eof
213
if "%ERRORLEVEL%"=="1" set version=unknown
213
if "%ERRORLEVEL%"=="1" set version=unknown
-
 
214
popd
214
goto :eof
215
goto :eof
215
216
216
:grpchecksum_results
217
:grpchecksum_results
217
if "%version%"=="full" echo NWINTER.GRP checksum verified.
218
if "%version%"=="full" echo NWINTER.GRP checksum verified.
218
if "%version%"=="demo" echo NWINTER.GRP (demo version) checksum verified.
219
if "%version%"=="demo" echo NWINTER.GRP (demo version) checksum verified.