update to generate version in same format git-annex uses
This commit is contained in:
parent
bfef0ba69f
commit
92833a7e99
1 changed files with 4 additions and 3 deletions
7
debian/create-standalone-changelog
vendored
7
debian/create-standalone-changelog
vendored
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# A little helper script to build a package with standalone git-annex
|
# A little helper script to build a package with standalone git-annex
|
||||||
# It relies on being run within git-annex Git repository
|
# It relies on being run within git-annex's git repository
|
||||||
#
|
#
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
git checkout debian/changelog
|
# This is the same method that the configure script uses when git-annex is
|
||||||
|
# built from git master.
|
||||||
|
ANNEX_VERSION=$(git log -n 1 --format=format:'%ci %h'| sed -e 's/-//g' -e 's/ .* /-g/')
|
||||||
|
|
||||||
ANNEX_VERSION=$(git describe HEAD)
|
|
||||||
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
|
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
|
||||||
|
|
||||||
dch --noconf -v ${ANNEX_NDVERSION} \
|
dch --noconf -v ${ANNEX_NDVERSION} \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue