11 git describe --abbrev=0 --always --tags --match='release-*' "$@"
14 templates=.github/workflows/deb/debian
18 [[ -z $curr ]] && bail 'could not determine release version'
20 # get previous tag name
21 prev=$(find_tag "$curr"^)
22 [[ -z $curr ]] && bail 'could not determine previous release version'
24 # strip release prefix to get the current version number
25 version=${curr//release-/}
27 # prepare a new debian directory
28 dh_make --yes --single --createorig --copyright gpl2 --packagename "tinc_$version-$JOB_DISTRIBUTION"
30 # write all commit messages between two most recent tags to the changelog
31 gbp dch --since "$prev" --ignore-branch --spawn-editor=never --release
33 # replace placeholders with files copied from https://packages.debian.org/experimental/tinc
34 cp "$templates/"* debian/
36 # remove useless READMEs created by dh_make