From fb0759ace1206981d3718e7b5f743737dd788a53 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 5 Mar 2010 08:05:53 +0100 Subject: [PATCH] Added the information from uname into the help. --- Makefile | 3 ++- selector.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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", -- 2.20.1