aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build-aux/git-package-version.sh
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2012-12-13 13:33:04 -0900
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2012-12-13 13:33:04 -0900
commitd6dcd1d98b07c5a26d93602dc46ea885a52b6e99 (patch)
tree057f021b568f0ba54142afd750a6e83822bc3e58 /build-aux/git-package-version.sh
parentac1de612e9c041afedcd1a437dc4b58106116494 (diff)
downloadbindletools-d6dcd1d98b07c5a26d93602dc46ea885a52b6e99.tar.gz
bindletools-d6dcd1d98b07c5a26d93602dc46ea885a52b6e99.tar.bz2
bindletools-d6dcd1d98b07c5a26d93602dc46ea885a52b6e99.tar.xz
bindletools-d6dcd1d98b07c5a26d93602dc46ea885a52b6e99.zip
Fixing logic error in git-package-version.sh
Diffstat (limited to 'build-aux/git-package-version.sh')
-rwxr-xr-xbuild-aux/git-package-version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/git-package-version.sh b/build-aux/git-package-version.sh
index a403642..6d653ca 100755
--- a/build-aux/git-package-version.sh
+++ b/build-aux/git-package-version.sh
@@ -160,8 +160,8 @@ fi
160 160
161 161
162# retrieve raw output of git describe 162# retrieve raw output of git describe
163if test -f ${SRCDIR}/.git || test -d ${SRCDIR}/.git;then 163if test -f ${GIT_TOP_DIR}/.git || test -d ${GIT_TOP_DIR}/.git;then
164 GDR=`git --git-dir=${SRCDIR}/.git describe --long --abbrev=7 HEAD 2> /dev/null`; 164 GDR=`git --git-dir=${GIT_TOP_DIR}/.git describe --long --abbrev=7 HEAD 2> /dev/null`;
165 GVS=`echo ${GDR} |sed -e 's/-/./g' -e 's/^v//g'`; 165 GVS=`echo ${GDR} |sed -e 's/-/./g' -e 's/^v//g'`;
166 GPV=`echo ${GVS} |sed -e 's/\.g[[:xdigit:]]\{0,\}$//g' -e 's/\.0$//g'`; 166 GPV=`echo ${GVS} |sed -e 's/\.g[[:xdigit:]]\{0,\}$//g' -e 's/\.0$//g'`;
167 GPB=`echo ${GVS} |sed -e 's/.*\.\(g[[:xdigit:]]\{1,\}\)$/\1/g'`; 167 GPB=`echo ${GVS} |sed -e 's/.*\.\(g[[:xdigit:]]\{1,\}\)$/\1/g'`;