From d439789d925ae2febdb6110626b584b165c13df1 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 24 Oct 2016 16:26:45 +0200 Subject: [PATCH] Replace all non-alphanumeric chars in gen-version --- build-aux/gen-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/gen-version b/build-aux/gen-version index 463403b2bd..a531f28cea 100755 --- a/build-aux/gen-version +++ b/build-aux/gen-version @@ -27,7 +27,7 @@ if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then VERSION="$(git describe --match=${REL_TYPE}-* --dirty=.dirty | cut -d- -f 2-)" else GIT_VERSION=$(git show --no-patch --format=format:%h HEAD) - BRANCH=".$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/-//g;')" + BRANCH=".$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/[^[:alnum:]]//g;')" [ "${BRANCH}" = ".master" ] && BRANCH='' VERSION="0.0${BRANCH}.${PDNS_BUILD_NUMBER}g${GIT_VERSION}${DIRTY}" fi -- 2.47.2