Hey, i decided to release the script i use instead of commands to download and compile my MaNGOS servers from scratch, save this as a executable text file and run in the terminal
Code:
#!/bin/sh
echo "Mangos compiler by Iksf"
echo "_______________________"
cd ~
echo "Asking for permission level"
echo "Cleaning up directories that will be used"
rm -r mangos_build --force
echo "^any error there does not matter"
mkdir mangos_build
cd mangos_build
echo "Directories made"
git clone git://github.com/mangos/mangos.git
svn co http://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2 mangos/src/bindings/ScriptDev2
echo "Mangos and Script Engine have been downloaded"
cd mangos
git apply src/bindings/ScriptDev2/patches/MaNGOS-8273-ScriptDev2.patch
echo "configuring"
autoreconf --install --force
mkdir build
cd build
../configure --prefix=/MaNGOS --sysconfdir=/MaNGOS --enable-cli --enable-ra --datadir=/MaNGOS
echo "Configuration completed"
echo "Entering compilation process"
sudo make
echo "Main compilation completed, installing"
sudo make install
echo "Cleaning leftovers"
sudo make clean
cd ..
echo "Cleaning directories"
rm -r build
cd ..
cd ..
rm -r mangos_build
echo "Done. You may now eat your cake"