2011-07-16 22:32:57 +00:00
|
|
|
version=$1
|
2011-07-30 16:13:14 +00:00
|
|
|
build_dir=`pwd`
|
2011-07-16 22:32:57 +00:00
|
|
|
dir=`pwd`/../forge-$version
|
|
|
|
|
|
|
|
function remove_svn () {
|
|
|
|
(
|
|
|
|
cd $1
|
|
|
|
|
|
|
|
if [ -d .svn ]; then
|
|
|
|
rm -rf .svn
|
|
|
|
fi
|
|
|
|
|
|
|
|
for j in `ls`
|
|
|
|
do
|
|
|
|
if [ -d $j ]; then
|
|
|
|
remove_svn $j
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function package_all () {
|
|
|
|
qual=$1
|
|
|
|
|
2011-08-06 21:23:38 +00:00
|
|
|
cp $build_dir/minecraftforge_credits.txt .
|
|
|
|
|
2011-07-16 22:32:57 +00:00
|
|
|
zip -r $dir/minecraftforge$qual-$version.zip \
|
2011-08-06 21:23:38 +00:00
|
|
|
minecraftforge_credits.txt \
|
2011-07-16 22:32:57 +00:00
|
|
|
*.class \
|
2011-07-16 22:39:55 +00:00
|
|
|
forge
|
2011-07-16 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
cd ../reobf
|
|
|
|
|
|
|
|
remove_svn .
|
|
|
|
|
|
|
|
rm -rf $dir
|
|
|
|
mkdir $dir
|
|
|
|
|
|
|
|
cd minecraft
|
|
|
|
package_all "-client"
|
|
|
|
|
|
|
|
cd ../minecraft_server
|
|
|
|
package_all "-server"
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
2011-07-16 22:39:55 +00:00
|
|
|
rm -rf reobf
|
2011-07-30 16:13:14 +00:00
|
|
|
|
|
|
|
cd $build_dir
|
|
|
|
|
2011-08-04 06:10:38 +00:00
|
|
|
mkdir forge
|
|
|
|
cd forge
|
2011-07-30 16:13:14 +00:00
|
|
|
mkdir src
|
|
|
|
mkdir src/minecraft
|
|
|
|
mkdir src/minecraft_server
|
2011-10-11 22:23:39 +00:00
|
|
|
mkdir patches
|
2011-12-11 07:04:21 +00:00
|
|
|
mkdir conf
|
2011-08-04 06:10:38 +00:00
|
|
|
cp -r ../forge_client/src/* src/minecraft
|
|
|
|
cp -r ../forge_server/src/* src/minecraft_server
|
|
|
|
cp -r ../forge_common/* src/minecraft
|
|
|
|
cp -r ../forge_common/* src/minecraft_server
|
2011-10-11 22:23:39 +00:00
|
|
|
cp -r ../patches/* patches
|
2011-12-11 07:04:21 +00:00
|
|
|
cp -r ../conf/* conf
|
2011-08-04 06:10:38 +00:00
|
|
|
cp ../lfcr.py .
|
|
|
|
cp ../install/install.cmd .
|
2011-10-11 22:23:39 +00:00
|
|
|
cp ../install/install.sh .
|
|
|
|
cp ../modLoaderMP.patch .
|
2011-11-30 19:00:43 +00:00
|
|
|
cp ../MLProp.java .
|
2011-08-04 06:10:38 +00:00
|
|
|
cp ../install/README.txt .
|
2011-08-06 21:23:38 +00:00
|
|
|
cp ../minecraftforge_credits.txt .
|
2011-08-04 06:10:38 +00:00
|
|
|
cp -r ../doc .
|
2011-07-30 16:13:14 +00:00
|
|
|
|
2011-07-30 21:25:39 +00:00
|
|
|
cd src
|
|
|
|
remove_svn .
|
2011-10-11 22:23:39 +00:00
|
|
|
cd ../patches
|
|
|
|
remove_svn .
|
2011-12-11 07:04:21 +00:00
|
|
|
cd ../conf
|
|
|
|
remove_svn .
|
2011-07-30 21:25:39 +00:00
|
|
|
cd ..
|
|
|
|
|
2011-08-04 06:10:38 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
zip -r $dir/minecraftforge-src-$version.zip forge
|
|
|
|
rm -rf forge
|