FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

LinkBack Thread Tools
Old 02-22-2011, 06:36 AM
Jeremy Kerr
Default UBUNTU: lucid: parameterise base version search string

For OEM branches, we may have different version numbering in the release
commit messages. In this case, the current method of finding baseCommit
does not work, so printchanges can't find the correct set of commits to
generate the changelog.

This change parameterises the search string use to find baseCommit,
allowing it to be overridden by a branch-specific variable. If no
variable is provided, we default to the current string.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>

debian/rules.d/1-maintainer.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules.d/1-maintainer.mk b/debian/rules.d/1-maintainer.mk
index 65b9688..a513b7a 100644
--- a/debian/rules.d/1-maintainer.mk
+++ b/debian/rules.d/1-maintainer.mk
@@ -106,9 +106,11 @@ endif
@echo "do_full_source = $(do_full_source)"
@echo "do_tools = $(do_tools)"

+baseCommitRegex ?= UBUNTU: .*Ubuntu-$(release)-$(prev_revision)$$
@baseCommit=$$(git log --pretty=format:'%H %s' |
- awk '/UBUNTU: '".*Ubuntu-$(release)-$(prev_revision)"'$$/ { print $$1; exit }');
+ awk '/$(baseCommitRegex)/ { print $$1; exit }');
git log "$$baseCommit"..HEAD |
perl -w -f $(DROOT)/scripts/misc/git-ubuntu-log $(ubuntu_log_opts)

kernel-team mailing list

Thread Tools

All times are GMT. The time now is 08:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org