Skip to content

Commit 78be697

Browse files
Jean-Tiare Le Bigotyadutaf
Jean-Tiare Le Bigot
authored andcommitted
fix debian/CHANGELOG generation
Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
1 parent 3282829 commit 78be697

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

debian/changelog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ python-ovh (0.4.4) trusty; urgency=medium
1616
* Add debian folder
1717
* fix: remove Python SNI warnings, OVH API does not need SNI (#35)
1818
* fix: coveralls version
19-
* [auto] bump version to v0.4.6
2019
* fix: (regression) body boolean must be sent as boolean (#34)
2120

2221
-- Arnaud Morin <arnaud.morin@corp.ovh.com> Mon, 03 Oct 2016 14:34:21 +0200

scripts/bump-version.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ then
3131
exit 1
3232
fi
3333

34-
# Upgrading debian/changelog
35-
dch --noquery --distribution trusty --newversion ${CURRENT_VERSION} "New upstream release v${CURRENT_VERSION}"
36-
while IFS= read -r line ; do
37-
dch -a $line
38-
done <<< $(git log --format='format:%s' --no-merges v${CURRENT_VERSION}..)
39-
4034
sed -i "4i## ${VERSION} ($(date --iso))\n${CHANGES}\n" CHANGELOG.md
4135
vim CHANGELOG.md
4236

37+
# Upgrading debian/changelog
38+
dch --noquery --distribution trusty --newversion ${VERSION} "New upstream release v${VERSION}"
39+
awk "/## ${VERSION}/{f=1;next}/##/{f=0} f" CHANGELOG.md | sed 's/^\s*-\s*//' | while IFS= read -r line ; do
40+
dch --noquery --distribution trusty -a "$line"
41+
done
42+
4343
# Commit and tag
4444
git commit -sam "[auto] bump version to v${VERSION}"
4545
git tag v${VERSION}

0 commit comments

Comments
 (0)