New parameter for setup script to skip the initial decompile. Used in the build system to speed things up.

This commit is contained in:
LexManos 2012-02-03 10:46:49 +00:00
parent e3b3920661
commit 02088ea278
2 changed files with 100 additions and 96 deletions

View file

@ -23,7 +23,9 @@ function remove_svn () {
function package_all () {
qual=$1
cp $build_dir/minecraftforge_credits.txt .
cp "$build_dir/minecraftforge_credits.txt" .
echo "Making minecraftforge$qual-$version.zip"
zip -r "$dir/minecraftforge$qual-$version.zip" \
minecraftforge_credits.txt \
@ -48,7 +50,7 @@ cd ../..
rm -rf reobf
cd $build_dir
cd "$build_dir"
mkdir forge
cd forge

View file

@ -1,12 +1,15 @@
echo off
pushd .. >nul
if "%1"=="-skipdecompile" (
@echo | cmd /C updatenames.bat
) ELSE (
rmdir /S /Q src
@echo | cmd /C decompile.bat
)
rmdir /S /Q src_base
rmdir /S /Q src_work
@echo | cmd /C decompile.bat
pushd src >nul
del minecraft\net\minecraft\src\MLProp.java
copy ..\forge\MLProp.java minecraft\net\minecraft\src\MLProp.java
@ -44,4 +47,3 @@ pushd .. >nul
popd >nul
echo finished
pause