]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use symlink for gen-version script
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 27 Nov 2015 17:00:06 +0000 (18:00 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 27 Nov 2015 17:00:06 +0000 (18:00 +0100)
pdns/dnsdistdist/build-aux/gen-version [changed from file to symlink]

deleted file mode 100755 (executable)
index a2a42a0d44ad3e3d20154d26b13061156e3a0841..0000000000000000000000000000000000000000
+++ /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
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..65e37dfd1d1db00d0046b2d0385bc9b1409ced68
--- /dev/null
@@ -0,0 +1 @@
+../../../build-aux/gen-version
\ No newline at end of file