[csw-maintainers] Catalog generation date information in catalog/pkgutil?

Philip Brown phil at bolthole.com
Thu Apr 14 21:20:53 CEST 2011


On Thu, Apr 14, 2011 at 1:44 AM, James Lee <james at opencsw.org> wrote:
> On 13/04/11, 21:34:39, Philip Brown <phil at bolthole.com> wrote regarding Re:
> [
>
>> Is this some kind of actual documented external standard label?
>..
>
>> Otherwise, I dont see the value of "CreationDate:"  over what I shoved
>> in there, of
>> "..blah blah... generated on $(date....)"
>
> To ease mechanical extraction.  Simplistic shell commands but work as
> examples:
>
> date=$(grep '^# CreationDate:' catalog)
> echo ${date#*:}
>
> echo $(sed -n -e '/^# CreationDate: /s///p' catalog)

awk 'NR==1{print $NF;exit}' catalog



>
> The token "CreationDate" is the same token used by PDF and Postscript
> DSC [1] [2].  PS DSC is a similar example of how to use comments to
> embed data in the catalog.

thats a nice reference. However, going by your examples, either of
them use ISO8601 format, so in a way, that is an argument NOT to use
it.

> $ grep '^/CreationDate' file.pdf
> /CreationDate(D:20101216165641+00'00')
>
> $ grep '^%%CreationDate' file.ps
> %%CreationDate: 2011/03/24 14:07:25

Does anyone have examples of use of the ISO8601 foramt used in a
text(ish) file, and what keyword, if any, that they use?


More information about the maintainers mailing list