Skip to content

Instantly share code, notes, and snippets.

@pasdVn
Created April 1, 2011 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasdVn/897905 to your computer and use it in GitHub Desktop.
Save pasdVn/897905 to your computer and use it in GitHub Desktop.
if [ ! -d codeblocks ] ; then
mkdir codeblocks
fi
cd codeblocks
cmake .. -G "CodeBlocks - Unix Makefiles" -DPREFIX=/home/tobias/Entwicklung/mangos_bin/Iov/ -DPCH=1 -DDEBUG=1
cd ..
echo "Customizing Code::Blocks Project file".
sed -e 's|Makefile\" mangos-worldd|Makefile\" mangos-worldd -j4|' \
-e 's|output="/home/tobias/Entwicklung/mangos/Iov/codeblocks/src/mangosd/mangos-worldd"|output="/home/tobias/Entwicklung/mangos_bin/Iov/bin/mangos-worldd"|' \
-e 's|Makefile\" all|Makefile\" all -j4|' \
-e '/<Target title="mangos-worldd">/ a\ <ExtraCommands>\n <Add after="make install -j4" />\n </ExtraCommands>' \
-e '/<Target title="all">/ a\ <ExtraCommands>\n <Add after="make install -j4" />\n </ExtraCommands>' \
codeblocks/MaNGOS.cbp > codeblocks/MaNGOS_custom.cbp
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment