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
|
|
|
|
|
2015-04-20 18:51:34 +00:00
|
|
|
# This is the same method that the configure script uses when git-annex is
|
|
|
|
# built from git master.
|
2015-04-21 20:42:54 +00:00
|
|
|
ANNEX_VERSION=$(runghc Build/BuildVersion.hs)
|
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"
|