Created
April 1, 2011 08:53
-
-
Save pasdVn/897905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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