2015-04-20 15:29:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# A little helper script to build a package with standalone git-annex
|
2015-04-20 18:51:34 +00:00
|
|
|
# It relies on being run within git-annex's git repository
|
2015-04-20 15:29:32 +00:00
|
|
|
#
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
|
2018-08-08 22:01:27 +00:00
|
|
|
# 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)
|
2015-04-20 15:29:32 +00:00
|
|
|
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
|
|
|
|
|
|
|
|
dch --noconf -v ${ANNEX_NDVERSION} \
|
|
|
|
--force-bad-version --force-distribution -D neurodebian "Backported fresh snapshot"
|