Use git describe output for defining sortable version for NeuroDebian snapshots

It largely reverts all the changes to the state of bfef0ba69f
to get a sortable version of git-annex-standalone package
This commit is contained in:
Yaroslav Halchenko 2018-08-08 18:01:27 -04:00 committed by Joey Hess
parent 12460fcea6
commit 2cf30081bf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -7,10 +7,10 @@ set -eu
umask 022
# This is the same method that the configure script uses when git-annex is
# built from git master.
ANNEX_VERSION=$(runghc Build/BuildVersion.hs)
# For NeuroDebian we rely on `git describe` output to get a
# sortable version which should work for any stage of a snapshot between
# releases and would remain sortable
ANNEX_VERSION=$(git describe HEAD)
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
dch --noconf -v ${ANNEX_NDVERSION} \