Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] support/download/cvs: add support to use a date instead of a tag
Date: Sat, 02 May 2015 12:20:57 +0200	[thread overview]
Message-ID: <5544A509.6040501@mind.be> (raw)
In-Reply-To: <1430091621-4698-2-git-send-email-fabio.porcedda@gmail.com>

On 27/04/15 01:40, Fabio Porcedda wrote:
> This is useful when a tag is not avaiable.

 Actually, we currently only support a date. The cvs co -r option has the
following syntax: -r tag[:date] - so we currently always interpret the version
as a date, since we put a : in front of it.

 The :date extension is only valid when the tag is not a tag but a branch. If
the tag is empty, it refers to the trunk.

 AFAICS, the -D option is completely equivalent to -r :date .

 I applied just the third patch of this series and could build expect successfully.


 That said, I think the current behaviour is ridiculous, so perhaps the : should
be removed from the -r handling. The : can be added explicitly in the version
number - but then the directory name of expect will be
expect-_2014-05-02 which is also a bit weird...

> 
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  support/download/cvs | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/support/download/cvs b/support/download/cvs
> index 2c3a666..9cf9304 100755
> --- a/support/download/cvs
> +++ b/support/download/cvs
> @@ -26,7 +26,16 @@ rev="${3}"
>  rawname="${4}"
>  basename="${5}"
>  
> +if [[ ${rev} =~ ^[0-9] ]]; then
> +    # Date, because a tag cannot begin with a number
> +    select="-D ${rev}"
> +else
> +    # Tag
> +    select=-"r :${rev}"

 Note that this won't work, since the space will be interpreted as a tag name.
It should be

	select="-r :\"${rev}\""

and remove the quotes from where ${select} is used.


 Regards,
 Arnout

> +fi
> +
> +export TZ=UCT
>  ${CVS} ${verbose} -z3 -d":pserver:anonymous@${repo}" \
> -       co -d "${basename}" -r ":${rev}" -P "${rawname}"
> +       co -d "${basename}" "${select}" -P "${rawname}"
>  
>  tar czf "${output}" "${basename}"
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2015-05-02 10:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-26 23:40 [Buildroot] [PATCH 0/4] Use a date for cvs and bump expect Fabio Porcedda
2015-04-26 23:40 ` [Buildroot] [PATCH 1/4] support/download/cvs: add support to use a date instead of a tag Fabio Porcedda
2015-05-02 10:20   ` Arnout Vandecappelle [this message]
2015-05-04  7:53     ` Fabio Porcedda
2015-05-04 16:47       ` Arnout Vandecappelle
2015-05-06  9:19         ` Fabio Porcedda
2015-04-26 23:40 ` [Buildroot] [PATCH 2/4] manual: cvs: document that a date can be used " Fabio Porcedda
2015-04-26 23:40 ` [Buildroot] [PATCH 3/4] expect: bump to version 5.45.3 Fabio Porcedda
2015-05-02 10:21   ` Arnout Vandecappelle
2015-04-26 23:40 ` [Buildroot] [PATCH 4/4] manual: don't use a comment at the end of the version variable assignment Fabio Porcedda
2015-04-27 21:31   ` Thomas Petazzoni

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=5544A509.6040501@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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