Improved the setup scripts.

This commit is contained in:
Eloraam 2011-08-02 03:54:59 +00:00
parent 197c847a5f
commit 98fbe565b3
2 changed files with 12 additions and 4 deletions

8
forge/lfcr.py Normal file
View 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()

View file

@ -1,5 +1,3 @@
set CYGWIN=E:\cygwin\bin
cd ..
rmdir /S /Q src
@ -10,7 +8,8 @@ rmdir /S /Q src_work
) ELSE (
cmd /C decompile.bat
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 ..
cmd /C recompile.bat
cmd /C updatemd5.bat
@ -21,5 +20,6 @@ mkdir src_work
xcopy /Y /E src\* src_base
xcopy /Y /E src\* 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