Hi DMG, Sorry, I cannot capture what you mean.
Why do not you use ./nomos -V to get version of nomos? -larry > -----Original Message----- > From: [email protected] [mailto:fossology- > [email protected]] On Behalf Of dmg > Sent: Thursday, November 14, 2013 3:09 PM > To: [email protected] > Subject: [FOSSology] patch to output version information in nomos > > A simple patch to write to STDOUT the version of nomos > > diff --git a/src/nomos/agent/nomos.c b/src/nomos/agent/nomos.c index > 6af5623..4ae270e 100644 > --- a/src/nomos/agent/nomos.c > +++ b/src/nomos/agent/nomos.c > @@ -550,6 +550,10 @@ FUNCTION void parseLicenseList() { > > > FUNCTION void Usage(char *Name) { > + char *SVN_REV = fo_sysconfig("nomos", "SVN_REV"); char *VERSION = > + fo_sysconfig("nomos", "VERSION"); > + > + printf("Nomos version %s.%s\n", VERSION, SVN_REV); > printf("Usage: %s [options] [file [file [...]]\n", Name); > printf(" -h :: help (print this message), then exit.\n"); > printf(" -i :: initialize the database, then exit.\n"); > > > -- > --dmg > > --- > Daniel M. German > http://turingmachine.org > _______________________________________________ > fossology mailing list > [email protected] > http://lists.fossology.org/mailman/listinfo/fossology _______________________________________________ fossology mailing list [email protected] http://lists.fossology.org/mailman/listinfo/fossology
