Improved the setup scripts.
This commit is contained in:
parent
197c847a5f
commit
98fbe565b3
2 changed files with 12 additions and 4 deletions
8
forge/lfcr.py
Normal file
8
forge/lfcr.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
|
import sys, re, os
|
||||||
|
data = open(sys.argv[1], "rb").read()
|
||||||
|
newdata = re.sub("\r?\n", "\r\n", data)
|
||||||
|
f = open(sys.argv[2], "wb")
|
||||||
|
f.write(newdata)
|
||||||
|
f.close()
|
|
@ -1,5 +1,3 @@
|
||||||
set CYGWIN=E:\cygwin\bin
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
rmdir /S /Q src
|
rmdir /S /Q src
|
||||||
|
@ -10,7 +8,8 @@ rmdir /S /Q src_work
|
||||||
) ELSE (
|
) ELSE (
|
||||||
cmd /C decompile.bat
|
cmd /C decompile.bat
|
||||||
cd src
|
cd src
|
||||||
%CYGWIN%\patch -u -p2 < ..\forge\modLoaderMP.patch
|
..\runtime\bin\python\python_mcp forge\lfcr.py ..\forge\modLoaderMP.patch ..\forge\modLoaderMP-win.patch
|
||||||
|
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\modLoaderMP.patch
|
||||||
cd ..
|
cd ..
|
||||||
cmd /C recompile.bat
|
cmd /C recompile.bat
|
||||||
cmd /C updatemd5.bat
|
cmd /C updatemd5.bat
|
||||||
|
@ -21,5 +20,6 @@ mkdir src_work
|
||||||
xcopy /Y /E src\* src_base
|
xcopy /Y /E src\* src_base
|
||||||
xcopy /Y /E src\* src_work
|
xcopy /Y /E src\* src_work
|
||||||
cd src_work
|
cd src_work
|
||||||
%CYGWIN%\patch -u -p2 < ..\forge\minecraft.patch
|
..\runtime\bin\python\python_mcp forge\lfcr.py ..\forge\minecraft.patch ..\forge\minecraft-win.patch
|
||||||
|
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\minecraft-win.patch
|
||||||
pause
|
pause
|
||||||
|
|
Loading…
Reference in a new issue