[PATCH] UBUNTU: [Packaging] Fix 'printchanges' to work with versions containing '+'
Dann Frazier
dann.frazier at canonical.com
Wed Jul 30 17:03:33 UTC 2014
On Wed, Jul 30, 2014 at 10:57 AM, dann frazier
<dann.frazier at canonical.com> wrote:
> I maintain several topic kernel branches/builds where I like to use version
> strings that contain a '+' character. Today this means I can't use targets
> like printchanges and insertchanges because '+' characters aren't escaped.
Oh, and I'd find this useful for both utopic and trusty, though I do
understand if it
doesn't meet the SRU requirements.
-dann
> Signed-off-by: dann frazier <dann.frazier at canonical.com>
> ---
> debian/rules.d/1-maintainer.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/debian/rules.d/1-maintainer.mk b/debian/rules.d/1-maintainer.mk
> index bc2e458..f7a0092 100644
> --- a/debian/rules.d/1-maintainer.mk
> +++ b/debian/rules.d/1-maintainer.mk
> @@ -97,7 +97,7 @@ printenv:
>
> printchanges:
> @baseCommit=$$(git log --pretty=format:'%H %s' | \
> - gawk '/UBUNTU: '".*Ubuntu-$(prev_fullver)"'$$/ { print $$1; exit }'); \
> + gawk '/UBUNTU: '".*Ubuntu-`echo $(prev_fullver) | sed 's/+/\\\\+/'`"'$$/ { print $$1; exit }'); \
> git log "$$baseCommit"..HEAD | \
> perl -w -f $(DROOT)/scripts/misc/git-ubuntu-log $(ubuntu_log_opts)
>
> --
> 2.0.1
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list