2011-10-10 00:09:48 +00:00
|
|
|
echo off
|
|
|
|
pushd .. >nul
|
2011-07-17 12:16:26 +00:00
|
|
|
|
2011-10-10 00:09:48 +00:00
|
|
|
rmdir /S /Q src
|
|
|
|
rmdir /S /Q src_base
|
2011-10-09 04:21:29 +00:00
|
|
|
rmdir /S /Q src_work
|
2011-10-10 00:09:48 +00:00
|
|
|
|
2011-10-09 04:21:29 +00:00
|
|
|
cmd /C decompile.bat
|
2011-10-10 00:09:48 +00:00
|
|
|
|
|
|
|
pushd src >nul
|
2011-11-30 19:00:43 +00:00
|
|
|
del minecraft\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft\net\minecraft\src\MLProp.java
|
|
|
|
del minecraft_server\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft_server\net\minecraft\src\MLProp.java
|
2011-12-05 08:30:07 +00:00
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py ..\forge\modLoaderMP.patch ..\forge\modLoaderMP-win.patch
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\modLoaderMP-win.patch
|
|
|
|
del ..\forge\modLoaderMP-win.patch
|
2011-10-10 00:09:48 +00:00
|
|
|
popd >nul
|
|
|
|
|
2011-10-09 04:21:29 +00:00
|
|
|
cmd /C updatemd5.bat
|
2011-10-10 00:09:48 +00:00
|
|
|
|
|
|
|
mkdir src_base
|
|
|
|
mkdir src_work
|
|
|
|
|
|
|
|
xcopy /Y /E /Q src\* src_base
|
|
|
|
xcopy /Y /E /Q src\* src_work
|
|
|
|
|
|
|
|
pushd src_work >nul
|
|
|
|
@setlocal enabledelayedexpansion
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
set PATH=..\forge\bin;%PATH%
|
|
|
|
echo Applying patches
|
|
|
|
for /f %%i in ('find ../forge/patches -type f') do (
|
|
|
|
set file=%%i
|
|
|
|
rem Have to do this to filter out .svn entries
|
|
|
|
if /I "!file:~-6!" EQU ".patch" (
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py %%i ..\forge\temp.patch
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 -i ..\forge\temp.patch
|
2011-10-10 23:47:30 +00:00
|
|
|
del ..\forge\temp.patch >nul 1>nul
|
2011-10-10 00:09:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
popd >nul
|
|
|
|
popd >nul
|
|
|
|
echo finished
|
2011-07-19 17:58:23 +00:00
|
|
|
pause
|
2011-10-09 04:21:29 +00:00
|
|
|
|