Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2021 08:19:38 -0500
From:      "Dan Langille" <dan@langille.org>
To:        freebsd-git@freebsd.org
Subject:   replacement for ident(1)
Message-ID:  <0bd4ecf6-2797-41da-902a-94fed6887abd@www.fastmail.com>

next in thread | raw e-mail | index | archive | help
Post git, what do we use instead of ident(1)?

>From https://www.freebsd.org/cgi/man.cgi?query=ident&sektion=1

NAME
     ident -- identify RCS keyword string in files

Example, pertinent to my use case:

$ ident security/vuxml/vuln.xml
security/vuxml/vuln.xml:
     $FreeBSD: head/security/vuxml/vuln.xml 566520 2021-02-25 02:33:12Z philip $

Here is the 15-year old code which uses it:

https://gist.github.com/dlangille/c7aee2ce3a717443d73e3d7f86a74130

Those four bits of information are used here:

https://www.freshports.org/vuxml.php?all

e.g.

The last vuln.xml file processed by FreshPorts is:

Revision:  566519
Date:      2021-02-25
Time:      02:33:09Z
Committer: philip

I could extract this separately during each commit of security/vuxml but wanted to check if there was another way first.

Thank you.

-- 
  Dan Langille
  dan@langille.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0bd4ecf6-2797-41da-902a-94fed6887abd>