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