scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

commit d4b6ef1c1df0027f74c671ebd460b169e8735fae
parent 002ac948d9e62e778c776132122af551b8fc0297
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 10 Dec 2017 02:29:48 -0500

Drop scdoc version in roff output

Diffstat:
MMakefile | 3++-
Msrc/main.c | 3+--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -295,8 +295,7 @@ static void parse_document(struct parser *p) { } 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");