From d4b6ef1c1df0027f74c671ebd460b169e8735fae Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Dec 2017 02:29:48 -0500 Subject: [PATCH] Drop scdoc version in roff output --- Makefile | 3 ++- src/main.c | 3 +-- diff --git a/Makefile b/Makefile index c0b12512fd734aeb8411ae320b8097c7fd55ef15..346d873196cebf3ee2240caba2d6f9f51b6dc0ee 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ +VERSION=1.0.0 CC=cc -CFLAGS=-Wall -Wextra -Werror -Wno-unused-parameter -std=c99 -pedantic +CFLAGS=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -std=c99 -pedantic LDFLAGS=-static INCLUDE=-Iinclude PREFIX=/usr/local diff --git a/src/main.c b/src/main.c index 5a67ac7d6059479c3da9b7dd99c5a91863860be6..74f1f33c78e2209948b6a6d0e165d3c840287e2e 100644 --- a/src/main.c +++ b/src/main.c @@ -295,8 +295,7 @@ } while (ch != UTF8_INVALID); } static void output_scdoc_preamble(struct parser *p) { - // TODO: Add version here - fprintf(p->output, ".\\\" Generated by scdoc\n"); + fprintf(p->output, ".\\\" Generated by scdoc " VERSION "\n"); fprintf(p->output, ".\\\" Fix weird qutation marks:\n"); fprintf(p->output, ".\\\" http://bugs.debian.org/507673\n"); fprintf(p->output, ".\\\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html\n"); -- 2.48.1