Commit 7097c655 authored by Marcelo Henrique Cerri's avatar Marcelo Henrique Cerri Committed by Kleber Sacilotto de Souza

UBUNTU: [Packaging] startnewrelease: add support for backport kernels

BugLink: http://bugs.launchpad.net/bugs/1793461

Update the startnewrelease target to support backport version numbers
when creating the new changelog entry.
Signed-off-by: default avatarMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 463b0859
...@@ -120,11 +120,10 @@ diffupstream: ...@@ -120,11 +120,10 @@ diffupstream:
startnewrelease: startnewrelease:
dh_testdir dh_testdir
@nextminor=$(shell expr `echo $(revision) | gawk -F. '{print $$2}'` + 1); \ @ver=$$(echo "$(revision)" | perl -ne 'if (/^(\d*)\.(\d*)(.*)?$$/) { printf("%d.%d%s\n", $$1 + 1, $$2 +1, $$3) }'); \
nextmajor=$(shell expr `echo $(revision) | awk -F. '{print $$1}'` + 1); \
now="$(shell date -R)"; \ now="$(shell date -R)"; \
echo "Creating new changelog set for $(release)-$$nextmajor.$$nextminor..."; \ echo "Creating new changelog set for $(release)-$$ver..."; \
echo -e "$(src_pkg_name) ($(release)-$$nextmajor.$$nextminor) UNRELEASED; urgency=medium\n" > $(DEBIAN)/changelog.new; \ echo -e "$(src_pkg_name) ($(release)-$$ver) UNRELEASED; urgency=medium\n" > $(DEBIAN)/changelog.new; \
echo " CHANGELOG: Do not edit directly. Autogenerated at release." >> \ echo " CHANGELOG: Do not edit directly. Autogenerated at release." >> \
$(DEBIAN)/changelog.new; \ $(DEBIAN)/changelog.new; \
echo " CHANGELOG: Use the printchanges target to see the curent changes." \ echo " CHANGELOG: Use the printchanges target to see the curent changes." \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment