mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
14
znc-buildmod
Executable file
14
znc-buildmod
Executable 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
|
||||
Reference in New Issue
Block a user