From: Fabio Porcedda <fabio.porcedda@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] support/download/cvs: add support to use a date instead of a tag
Date: Mon, 27 Apr 2015 01:40:18 +0200 [thread overview]
Message-ID: <1430091621-4698-2-git-send-email-fabio.porcedda@gmail.com> (raw)
In-Reply-To: <1430091621-4698-1-git-send-email-fabio.porcedda@gmail.com>
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>
---
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}"
+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}"
--
2.3.5
next prev parent reply other threads:[~2015-04-26 23:40 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 ` Fabio Porcedda [this message]
2015-05-02 10:20 ` [Buildroot] [PATCH 1/4] support/download/cvs: add support to use a date instead of a tag Arnout Vandecappelle
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=1430091621-4698-2-git-send-email-fabio.porcedda@gmail.com \
--to=fabio.porcedda@gmail.com \
--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.