From: Pieter Lexis Date: Fri, 27 Nov 2015 17:00:06 +0000 (+0100) Subject: Use symlink for gen-version script X-Git-Tag: dnsdist-1.0.0-alpha1~186^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0328ebb75c30e8f89421e48094730fe9931c1b3a;p=thirdparty%2Fpdns.git Use symlink for gen-version script --- diff --git a/pdns/dnsdistdist/build-aux/gen-version b/pdns/dnsdistdist/build-aux/gen-version deleted file mode 100755 index a2a42a0d44..0000000000 --- a/pdns/dnsdistdist/build-aux/gen-version +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -VERSION="unknown" - -if [ ! -z "$(git rev-parse --abbrev-ref HEAD)" ]; then - if [ $(git rev-parse --abbrev-ref HEAD | grep -q 'rel/') ]; then - REL_TYPE="$(git rev-parse --abbrev-ref HEAD | cut -d/ -f 2 | cut -d- -f 1)" - VERSION="$(git describe --match='${REL_TYPE}-*' --dirty=-dirty )" - else - GIT_VERSION=$(git show --no-patch --format=format:%h HEAD) - BRANCH="$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/-//g')" - if [ "${BRANCH}" = "master" ]; then - VERSION="0.0.${PDNS_BUILD_NUMBER}g${GIT_VERSION}" - else - VERSION="0.0.${BRANCH}.${PDNS_BUILD_NUMBER}g${GIT_VERSION}" - fi - fi - echo "$VERSION" > .version -elif [ -f .version ]; then - VERSION="$(cat .version)" -fi - -echo $VERSION diff --git a/pdns/dnsdistdist/build-aux/gen-version b/pdns/dnsdistdist/build-aux/gen-version new file mode 120000 index 0000000000..65e37dfd1d --- /dev/null +++ b/pdns/dnsdistdist/build-aux/gen-version @@ -0,0 +1 @@ +../../../build-aux/gen-version \ No newline at end of file