Added the information from uname into the help.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 5 Mar 2010 07:05:53 +0000 (08:05 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 5 Mar 2010 07:05:53 +0000 (08:05 +0100)
Makefile
selector.c

index 5d1209e..12eb260 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ MAN_PATH = /usr/share/man/man1
 LDFLAGS=-lcurses
 
 REVISION_NUMBER=\"$(shell cat REVISION_NUMBER)\"
+UNAME=\"$(shell uname -srmn)\"
 
 ifeq ($(DEBUG),yes)
   OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
@@ -34,7 +35,7 @@ else
   OPTIMIZE_FLAG = -O2
 endif
 
-CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER=$(REVISION_NUMBER) $(OPTIMIZE_FLAG)
+CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER="$(REVISION_NUMBER)" -DUNAME="$(UNAME)" $(OPTIMIZE_FLAG)
 
 all: selector
 
index f2c40b9..746e2f0 100644 (file)
@@ -888,7 +888,7 @@ int main(int argc, char **argv) {
       out = stderr;
     }
 
-    fprintf(out, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER);
+    fprintf(out, "Selector version %s-R%s (%s)\n", VERSION, REVISION_NUMBER, UNAME);
     fprintf(out, "Written by Francois Fleuret <francois@fleuret.org>.\n");
     fprintf(out, "\n");
     fprintf(out, "Usage: %s [options] [<filename1> [<filename2> ...]]\n",