On 28.08.2019 14:50, Joerg Sonnenberger wrote: > On Wed, Aug 28, 2019 at 11:00:55AM +0930, Brett Lymn wrote: >> I agree with Roy here, if we add the call we should spit out the >> version of the curses lib. > > The ELF version has no meaning though. If anything, keep a date of the > last visible interface change. > > Joerg > How about this version? http://netbsd.org/~kamil/patch-00146.curses_version.2.txt I have picked awk(1) as it is a single nbtool that is guaranteed to work in the same way virtually everywhere in the same way. The idea is to run 'make version.h' for at least each ELF version bump. $ cat test.c #include <curses.h> #include <stdio.h> int main(int argc, char **argv) { printf("'%s'\n", curses_version()); return 0; } $ gcc test.c -lcurses $ ./a.out 'NetBSD curses 2019-08-28 18:28:17'
Attachment:
signature.asc
Description: OpenPGP digital signature