From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] support/download/cvs: add support to use a date instead of a tag
Date: Sun, 19 Apr 2015 10:04:51 +0200 [thread overview]
Message-ID: <20150419080451.GA4313@free.fr> (raw)
In-Reply-To: <1429376067-9228-2-git-send-email-fabio.porcedda@gmail.com>
Fabio, All,
On 2015-04-18 18:54 +0200, Fabio Porcedda spake thusly:
> This is useful when a tag is not avaiable.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Although I'm not a big fan of the [[...]] bashism, that's OK since it
makes things so much simpler.
Regards,
Yann E. MORIN.
> ---
> support/download/cvs | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/support/download/cvs b/support/download/cvs
> index 2c3a666..6491cc8 100755
> --- a/support/download/cvs
> +++ b/support/download/cvs
> @@ -26,7 +26,15 @@ 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}"
> +fi
> +
> ${CVS} ${verbose} -z3 -d":pserver:anonymous@${repo}" \
> - co -d "${basename}" -r ":${rev}" -P "${rawname}"
> + co -d "${basename}" ${select} -P "${rawname}"
>
> tar czf "${output}" "${basename}"
> --
> 2.3.5
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2015-04-19 8:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-18 16:54 [Buildroot] [PATCH 0/3] expect: bump to version 5.45.3 Fabio Porcedda
2015-04-18 16:54 ` [Buildroot] [PATCH 1/3] support/download/cvs: add support to use a date instead of a tag Fabio Porcedda
2015-04-19 8:04 ` Yann E. MORIN [this message]
2015-04-18 16:54 ` [Buildroot] [PATCH 2/3] manual: cvs: document that a date can be used " Fabio Porcedda
2015-04-19 8:10 ` Yann E. MORIN
2015-04-19 10:08 ` Fabio Porcedda
2015-04-19 15:45 ` Arnout Vandecappelle
2015-04-20 2:36 ` Fabio Porcedda
2015-04-20 21:06 ` Arnout Vandecappelle
2015-04-22 8:03 ` Fabio Porcedda
2015-04-22 16:29 ` Yann E. MORIN
2015-04-22 20:27 ` Arnout Vandecappelle
2015-04-20 17:32 ` Yann E. MORIN
2015-04-18 16:54 ` [Buildroot] [PATCH 3/3] expect: bump to version 5.45.3 Fabio Porcedda
2015-04-19 8:11 ` Yann E. MORIN
2015-04-19 10:12 ` Fabio Porcedda
2015-04-19 10:35 ` Yann E. MORIN
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=20150419080451.GA4313@free.fr \
--to=yann.morin.1998@free.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.