2011-10-11 22:38:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "MinecraftForge Linux Setup Program"
|
|
|
|
echo
|
|
|
|
|
|
|
|
pushd .. > /dev/null
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
rm -rf conf
|
|
|
|
mkdir conf
|
|
|
|
cp -r forge/conf/* conf
|
|
|
|
|
|
|
|
if [ -f runtime/bin/fernflower.jar ];
|
|
|
|
then
|
|
|
|
mv runtime/bin/fernflower.jar runtime/bin/fernflower.jar-backup
|
|
|
|
fi
|
|
|
|
|
2011-10-11 22:38:39 +00:00
|
|
|
./cleanup.sh
|
|
|
|
./decompile.sh
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
if [ -f runtime/bin/fernflower.jar-backup ];
|
|
|
|
then
|
|
|
|
mv runtime/bin/fernflower.jar-backup runtime/bin/fernflower.jar
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-10-11 22:38:39 +00:00
|
|
|
pushd src > /dev/null
|
2011-12-11 07:04:21 +00:00
|
|
|
find . -name *.java -exec sed -i 's/\r//g' \{\} \;
|
2011-11-30 19:00:43 +00:00
|
|
|
cp ../forge/MLProp.java minecraft/net/minecraft/src/MLProp.java
|
|
|
|
cp ../forge/MLProp.java minecraft_server/net/minecraft/src/MLProp.java
|
2011-12-11 07:04:21 +00:00
|
|
|
|
|
|
|
find ../forge/ -name *.patch -exec sed -i 's/\r//g' \{\} \;
|
|
|
|
patch -p2 -i ../forge/modLoaderMP.patch
|
|
|
|
|
|
|
|
for i in `find ../forge/patches/ -type f`
|
|
|
|
do
|
|
|
|
patch -p2 -i $i
|
|
|
|
done
|
2011-10-11 22:38:39 +00:00
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
cp -r forge/src/* src
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
|
|
|
|
./updatemcp.sh
|
|
|
|
./updatenames.sh
|
|
|
|
./updatemd5.sh
|