mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Hubert Feurstein <h.feurstein@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] add xpkg extra-version support
Date: Thu, 5 Jan 2012 15:33:15 +0100	[thread overview]
Message-ID: <CAFfN3gWTun0_abO+8T0JcUUAgZGqaSpbSFWYaUHa8=JqF_Ub=A@mail.gmail.com> (raw)
In-Reply-To: <1325771308-8732-1-git-send-email-h.feurstein@gmail.com>

Hi,

I've just recognized that this is already obsolete. The patch "more
pkg_xpkg_version sanitizing and allow overwrite with
<PKG>_XPKG_VERSION" already addressed that problem.

Hubert

2012/1/5 Hubert Feurstein <h.feurstein@gmail.com>:
> With this it is possible to specify an extra-version string in the package
> make rule. e.g.: <PKG>_EXTRAVERSION := "-1"
>
> The extra-version string is added to the package version only.
>
> Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
> ---
>  rules/post/ptxd_make_world_common.make |    1 +
>  scripts/lib/ptxd_make_xpkg_common.sh   |    7 +++++++
>  2 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/rules/post/ptxd_make_world_common.make b/rules/post/ptxd_make_world_common.make
> index 25d5f02..ec7a87d 100644
> --- a/rules/post/ptxd_make_world_common.make
> +++ b/rules/post/ptxd_make_world_common.make
> @@ -55,6 +55,7 @@ world/env/impl = \
>                                                                                \
>        pkg_pkg="$(call ptx/escape,$($(1)))"                                    \
>        pkg_version="$(call ptx/escape,$($(1)_VERSION))"                        \
> +       pkg_extraversion="$(call ptx/escape,$($(1)_EXTRAVERSION))"              \
>        pkg_path="$(call ptx/escape,$($(1)_PATH))"                              \
>        pkg_src="$(call ptx/escape,$($(1)_SOURCE))"                             \
>        pkg_md5="$(call ptx/escape,$($(1)_MD5))"                                \
> diff --git a/scripts/lib/ptxd_make_xpkg_common.sh b/scripts/lib/ptxd_make_xpkg_common.sh
> index deccd12..04bc849 100644
> --- a/scripts/lib/ptxd_make_xpkg_common.sh
> +++ b/scripts/lib/ptxd_make_xpkg_common.sh
> @@ -77,6 +77,13 @@ ptxd_make_xpkg_init() {
>        ptxd_bailout "${FUNCNAME}: please define <PKG>_VERSION"
>     fi
>
> +    #
> +    # Add extra version to package version
> +    #
> +    if [ ! -z ${pkg_extraversion} ]; then
> +       pkg_xpkg_version="${pkg_xpkg_version}${pkg_extraversion//\"/}"
> +    fi
> +
>     ptxd_make_world_init || return
>
>     # license
> --
> 1.7.4.1
>

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2012-01-05 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05 13:48 Hubert Feurstein
2012-01-05 14:33 ` Hubert Feurstein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFfN3gWTun0_abO+8T0JcUUAgZGqaSpbSFWYaUHa8=JqF_Ub=A@mail.gmail.com' \
    --to=h.feurstein@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox