aboutsummaryrefslogtreecommitdiff
path: root/debian/create-standalone-changelog
blob: d1e5bbf5ce51c69fdaad1b7b21f515daf116722d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# A little helper script to build a package with standalone git-annex
# It relies on being run within git-annex's git repository
#
set -eu

umask 022

# 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_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"