[PATCH 10 of 22] buildrpm: introduce --suffix for adding a suffic to the package name

Olle olle.lundberg at gmail.com
Tue May 20 11:57:16 CDT 2014


On Tue, May 20, 2014 at 4:10 AM, Mads Kiilerich <mads at kiilerich.com> wrote:

> # HG changeset patch
> # User Mads Kiilerich <madski at unity3d.com>
> # Date 1400551681 -7200
> #      Tue May 20 04:08:01 2014 +0200
> # Node ID 528a57d3359489b137301ffca0e125cc1c0a84c3
> # Parent  c49b91c305bd59a5bb37d0ad9be4a2468625474d
> buildrpm: introduce --suffix for adding a suffic to the package name
>
nit: suffic -> suffix

>
> diff --git a/contrib/buildrpm b/contrib/buildrpm
> --- a/contrib/buildrpm
> +++ b/contrib/buildrpm
> @@ -12,6 +12,7 @@ if [ -z "$REV" ]; then
>  else
>      echo "Using \$REV=$REV for --rev" 1>&2
>  fi
> +SUFFIX=
>  RPMBUILDDIR="$PWD/rpmbuild"
>  BUILD=1
>  while [ "$1" ]; do
> @@ -21,6 +22,11 @@ while [ "$1" ]; do
>          REV="$1"
>          shift
>          ;;
> +    --suffix )
> +        shift
> +        SUFFIX="$1"
> +        shift
> +        ;;
>      --rpmbuilddir )
>          shift
>          RPMBUILDDIR="$1"
> @@ -85,7 +91,7 @@ rpmspec=$RPMBUILDDIR/SPECS/mercurial.spe
>
>  (
>  sed \
> -    -e "s,^Name:.*,Name: mercurial," \
> +    -e "s,^Name:.*,Name: mercurial$SUFFIX," \
>      -e "s,^Version:.*,Version: $version," \
>      -e "s,^Release:.*,Release: $release," \
>      $specfile
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>



-- 
Olle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140520/4df81eeb/attachment.html>


More information about the Mercurial-devel mailing list