[Buildroot] [PATCH 2/3] manual: cvs: document that a date can be used instead of a tag
Fabio Porcedda
fabio.porcedda at gmail.com
Mon Apr 20 02:36:11 UTC 2015
On Sun, Apr 19, 2015 at 5:45 PM, Arnout Vandecappelle <arnout at mind.be> wrote:
> On 19/04/15 12:08, Fabio Porcedda wrote:
>> On Sun, Apr 19, 2015 at 10:10 AM, Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
>>> Fabio, All,
>>>
>>> On 2015-04-18 18:54 +0200, Fabio Porcedda spake thusly:
>>>> Also instead of using the generic word "timestamp" use the word "tag".
>>>>
>>>> Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
>>>> ---
>>>> docs/manual/adding-packages-generic.txt | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
>>>> index 8cf6bb6..be754a2 100644
>>>> --- a/docs/manual/adding-packages-generic.txt
>>>> +++ b/docs/manual/adding-packages-generic.txt
>>>> @@ -280,7 +280,7 @@ information is (assuming the package name is +libfoo+) :
>>>> Only anonymous pserver mode is supported.
>>>> +LIBFOO_SITE+ 'must' contain the source URL as well as the remote
>>>> repository directory. The module is the package name.
>>>> - +LIBFOO_VERSION+ is 'mandatory' and 'must' be a timestamp.
>>>> + +LIBFOO_VERSION+ is 'mandatory' and 'must' be a tag or a date.
>>>
>>> I'd like we document the format of the date we recognise. Because, IIRC,
>>> cvs accepts 'yesterday' as a date format, and that would be interpreted
>>> as a tag with the current code.
>>>
>>> So maybe, just state something like:
>>>
>>> ... or a date (YYYYMMDD:hhmmss)
>>
>> What about this:
>> (<YYYY>-<MM>-<DD>[T<HH><MM>[<SS>]] e.g 2015-12-20 or 2015-12-20T1010)
>
> Can a timezone be added to that? Playing with dates and times without timezone
> is dangerous.
This one works: (<YYYY>-<MM>-<DD>[T<HH>:<MM>[:<SS>][-<ZZ>] e.g
2015-12-20 or 2015-12-20T10:10-00)
But to made it works I must replace the ":" with "_":
index bdb26b8..2beb529 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -325,14 +325,14 @@ $(2)_RAWNAME = $$(patsubst
host-%,%,$(1))
ifndef $(2)_VERSION
ifdef $(3)_VERSION
$(2)_DL_VERSION := $$(strip $$($(3)_VERSION))
- $(2)_VERSION := $$(subst /,_,$$(strip $$($(3)_VERSION)))
+ $(2)_VERSION := $$(subst :,_,$$(subst /,_,$$(strip $$($(3)_VERSION))))
else
$(2)_VERSION = undefined
$(2)_DL_VERSION = undefined
endif
else
$(2)_DL_VERSION := $$(strip $$($(2)_VERSION))
- $(2)_VERSION := $$(strip $$(subst /,_,$$($(2)_VERSION)))
+ $(2)_VERSION := $$(strip $$(subst :,_,$$(subst /,_,$$($(2)_VERSION))))
endif
BR
--
Fabio Porcedda
More information about the buildroot
mailing list