Added znc-buildmod, used for building modules

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@124 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-11 05:12:10 +00:00
parent fb5dc19c43
commit 08aafe87da

14
znc-buildmod Executable file
View File

@@ -0,0 +1,14 @@
#/bin/bash
CXXFLAGS=`znc-config --cflags`
INCLUDES=`znc-config --include`
LIBS=`znc-config --libs`
for FILE in "$@"
do
MOD="${FILE%.cpp}"
MOD="${MOD%.cc}"
echo -e " \033[1m\033[32m*\033[39m\033[22m Building ${MOD}.so... "
(g++ ${CXXFLAGS} ${INCLUDES} ${LIBS} -shared -o ${MOD}.so ${FILE} && echo -e "\b\b\b\b\b\b\033[1m\033[34m[ \033[32mok \033[34m]") || echo "[Error]"
done