From 00024b1b3a4ab49c63259f46a9837924f5cf4ba6 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 13 Jul 2011 19:54:35 +0200 Subject: [PATCH] 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 --- znc-buildmod.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/znc-buildmod.in b/znc-buildmod.in index 8c6f84ba..3f4102a0 100755 --- a/znc-buildmod.in +++ b/znc-buildmod.in @@ -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