LDFLAGS=-lcurses
-REVISION_NUMBER=\"$(shell cat REVISION_NUMBER)\"
UNAME=\"$(shell uname -srmn)\"
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -O2
endif
-CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER="$(REVISION_NUMBER)" -DUNAME="$(UNAME)" $(OPTIMIZE_FLAG)
+CFLAGS = -Wall -ansi -pedantic -DUNAME="$(UNAME)" $(OPTIMIZE_FLAG)
all: selector
#include <regex.h>
#include <locale.h>
-#define VERSION "1.0"
+#define VERSION "1.0.1"
#define BUFFER_SIZE 4096
void print_help(FILE *out) {
- fprintf(out, "Selector version %s-R%s (%s)\n", VERSION, REVISION_NUMBER, UNAME);
+ fprintf(out, "Selector version %s (%s)\n", VERSION, UNAME);
fprintf(out, "Written by Francois Fleuret <francois@fleuret.org>.\n");
fprintf(out, "\n");
fprintf(out, "Usage: selector [options] [<filename1> [<filename2> ...]]\n");