mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
znc-buildmod: Print znc's version number
This helps people figuring out that they are still building their modules for the wrong znc version since they have more than one installation on their box. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
+3
-2
@@ -44,6 +44,7 @@ CXXFLAGS="`${ZNC_CONFIG} --cflags` $CXXFLAGS"
|
||||
LIBS="`${ZNC_CONFIG} --libs` $LIBS"
|
||||
LDFLAGS="`${ZNC_CONFIG} --libznc` $LDFLAGS"
|
||||
MODLINK="`${ZNC_CONFIG} --modlink` $MODLINK"
|
||||
VERSION="`${ZNC_CONFIG} --version`"
|
||||
|
||||
while test ! -z "$1"
|
||||
do
|
||||
@@ -54,9 +55,9 @@ do
|
||||
MOD="${MOD%.cc}"
|
||||
|
||||
if test ! -f "${FILE}"; then
|
||||
echo "${ERROR} Building \"${MOD}.so\"... File not found"
|
||||
echo "${ERROR} Building \"${MOD}.so\" for znc $VERSION... File not found"
|
||||
else
|
||||
printf "Building \"${MOD}.so\"... "
|
||||
printf "Building \"${MOD}.so\" for znc $VERSION... "
|
||||
if ${CXX} ${CXXFLAGS} ${INCLUDES} ${LDFLAGS} ${LIBS} ${MODLINK} -o "${MOD}.so" "${FILE}" ; then
|
||||
echo "${OK}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user