From: Francois Fleuret Date: Fri, 5 Mar 2010 07:05:53 +0000 (+0100) Subject: Added the information from uname into the help. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=fb0759ace1206981d3718e7b5f743737dd788a53;p=selector.git Added the information from uname into the help. --- diff --git a/Makefile b/Makefile index 5d1209e..12eb260 100644 --- 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 diff --git a/selector.c b/selector.c index f2c40b9..746e2f0 100644 --- a/selector.c +++ b/selector.c @@ -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 .\n"); fprintf(out, "\n"); fprintf(out, "Usage: %s [options] [ [ ...]]\n",