ForgePatch/forge/install/install.sh

45 lines
910 B
Bash
Raw Normal View History

2011-10-11 22:38:39 +00:00
#!/bin/bash
echo "MinecraftForge Linux Setup Program"
echo
pushd .. > /dev/null
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
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
find . -name *.java -exec sed -i 's/\r//g' \{\} \;
cp ../forge/MLProp.java minecraft/net/minecraft/src/MLProp.java
cp ../forge/MLProp.java minecraft_server/net/minecraft/src/MLProp.java
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
./updatemcp.sh
./updatenames.sh
./updatemd5.sh