From 6735c09ed1f3b6602b8869d20669fc61de4bc357 Mon Sep 17 00:00:00 2001 From: Mike Small Date: Mon, 14 Dec 2020 19:56:17 -0500 Subject: [PATCH] Add Makefile, changelog, include err.h, url in README --- ChangeLog | 15 +++++++++++++++ Makefile | 20 ++++++++++++++++++++ README | 4 ++-- ansi2text.c | 1 + 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 ChangeLog create mode 100644 Makefile diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..3e0fbac --- /dev/null +++ b/ChangeLog @@ -0,0 +1,15 @@ +2020-12-14 Michael Small + + * ansi2text.c: include err.h to avoid implicit declartion warning + +2020-12-14 Michael Small + + * ansi2text.c: copy from NetBSD ticket in which Nathanial Sloss + submitted it: https://gnats.netbsd.org/48092 + + * ansi2text.1: copied from same ticket + +------------------------------------------------------------------------ +Copyright 2020 Michael Small +Copying and distribution of this file, with or without modification, are +permitted provided the copyright notice and this notice are preserved. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f0d033a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Copyright (c) 2020 Michael Small +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty, provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: ansi2text + +ansi2text: ansi2text.o + +install: ansi2text + install -d $(BINDIR) $(MANDIR) $(MANDIR)/man1 + install -m 755 -t $(BINDIR) ansi2text + install -m 444 -t $(MANDIR)/man1 ansi2text.1 + diff --git a/README b/README index 9548adc..6c2bdf7 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ A program to strip ansi codes from text files. -Looks to have only appeared in a NetBSD packaging request, problem report 48092. -See netbsd_gnat_pkging_request.origin which was saved from +Looks to have only appeared in a NetBSD packaging request, problem report 48092 +by Nathanial Sloss. See netbsd_gnat_pkging_request.origin which was saved from https://gnats.netbsd.org/48092 diff --git a/ansi2text.c b/ansi2text.c index 607a082..31b12a9 100644 --- a/ansi2text.c +++ b/ansi2text.c @@ -24,6 +24,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include