From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pz0-f44.google.com ([209.85.210.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RioNe-0000v4-Tq for ptxdist@pengutronix.de; Thu, 05 Jan 2012 15:33:24 +0100 Received: by dajz8 with SMTP id z8so443478daj.31 for ; Thu, 05 Jan 2012 06:33:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1325771308-8732-1-git-send-email-h.feurstein@gmail.com> References: <1325771308-8732-1-git-send-email-h.feurstein@gmail.com> Date: Thu, 5 Jan 2012 15:33:15 +0100 Message-ID: From: Hubert Feurstein Subject: Re: [ptxdist] [PATCH] add xpkg extra-version support Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, I've just recognized that this is already obsolete. The patch "more pkg_xpkg_version sanitizing and allow overwrite with _XPKG_VERSION" already addressed that problem. Hubert 2012/1/5 Hubert Feurstein : > With this it is possible to specify an extra-version string in the package > make rule. e.g.: _EXTRAVERSION :=3D "-1" > > The extra-version string is added to the package version only. > > Signed-off-by: Hubert Feurstein > --- > =A0rules/post/ptxd_make_world_common.make | =A0 =A01 + > =A0scripts/lib/ptxd_make_xpkg_common.sh =A0 | =A0 =A07 +++++++ > =A02 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/rules/post/ptxd_make_world_common.make b/rules/post/ptxd_mak= e_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 =3D \ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0\ > =A0 =A0 =A0 =A0pkg_pkg=3D"$(call ptx/escape,$($(1)))" =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > =A0 =A0 =A0 =A0pkg_version=3D"$(call ptx/escape,$($(1)_VERSION))" =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 pkg_extraversion=3D"$(call ptx/escape,$($(1)_EXTRAVERSION))= " =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > =A0 =A0 =A0 =A0pkg_path=3D"$(call ptx/escape,$($(1)_PATH))" =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > =A0 =A0 =A0 =A0pkg_src=3D"$(call ptx/escape,$($(1)_SOURCE))" =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \ > =A0 =A0 =A0 =A0pkg_md5=3D"$(call ptx/escape,$($(1)_MD5))" =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > 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() { > =A0 =A0 =A0 =A0ptxd_bailout "${FUNCNAME}: please define _VERSION" > =A0 =A0 fi > > + =A0 =A0# > + =A0 =A0# Add extra version to package version > + =A0 =A0# > + =A0 =A0if [ ! -z ${pkg_extraversion} ]; then > + =A0 =A0 =A0 pkg_xpkg_version=3D"${pkg_xpkg_version}${pkg_extraversion//= \"/}" > + =A0 =A0fi > + > =A0 =A0 ptxd_make_world_init || return > > =A0 =A0 # license > -- > 1.7.4.1 > -- = ptxdist mailing list ptxdist@pengutronix.de