Logo du Blog de Kromack (Samuel Sanchez)

Ressources et tutoriaux : Web 2.0 – PHP – CodeIgniter – Webdesign

Script de compilation mangos

Script de compilation mangos

1 mar 2009

Voici un script shell basique permettant de lancer la compilation de mangos sous linux en une seule commande. Ce n’est pas très évolué mais ça peux être pratique ;)

How to :

  1. Téléchargez le fichier update.sh dans le répertoire contenant vos sources GIT
  2. Exécutez : chmod 777 ./update.sh
  3. Exécutez : ./update.sh pour lancer la compilation
?Download update.sh
autoreconf --install --force
aclocal
autoheader
autoconf
automake --add-missing
automake src/bindings/ScriptDev2/Makefile
mkdir objdir
cd objdir
../configure --prefix=/home/mangos --sysconfdir=/home/mangos/etc --enable-cli --enable-ra --datadir=/home/mangos
make
make install
make clean
cd ..
echo Compilation terminee

N’oubliez de patcher au préalable votre dépôt GIT avec ScriptDev2 grâce à la commande :

git am src/bindings/ScriptDev2/patches/MaNGOS-xxxx-xx-xx-ScriptDev2.patch

Leave a Reply

Optimized by SEO Ultimate