From 38ff15ca6e02619594c41e5a11b1caf531c4e6e4 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 22 Nov 2014 22:03:13 +0100 Subject: [PATCH] znc-buildmod: build output to the current working directory If I run znc-buildmod in ~/.znc/modules and pass it a module source from another directory, I expect the build output to go to the current working directory instead of the source directory of the module. --- znc-buildmod.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/znc-buildmod.in b/znc-buildmod.in index 5460e292..e9b3f9b1 100755 --- a/znc-buildmod.in +++ b/znc-buildmod.in @@ -51,9 +51,10 @@ do MOD="${FILE%.cpp}" MOD="${MOD%.cc}" + MOD="${MOD##*/}" if test ! -f "${FILE}"; then - echo "${ERROR} Building \"${MOD}.so\" for ZNC $VERSION... File not found" + echo "${ERROR} Building \"${MOD}\" for ZNC $VERSION... File not found" else printf "Building \"${MOD}.so\" for ZNC $VERSION... " if ${CXX} ${CXXFLAGS} ${INCLUDES} ${LDFLAGS} ${MODLINK} -o "${MOD}.so" "${FILE}" ${LIBS} ; then