Add Makefile, changelog, include err.h, url in README

This commit is contained in:
Mike Small 2020-12-14 19:56:17 -05:00
parent 008d73c1d6
commit 6735c09ed1
4 changed files with 38 additions and 2 deletions

15
ChangeLog Normal file
View File

@ -0,0 +1,15 @@
2020-12-14 Michael Small <smallm@sdf.org>
* ansi2text.c: include err.h to avoid implicit declartion warning
2020-12-14 Michael Small <smallm@sdf.org>
* 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.

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
# Copyright (c) 2020 Michael Small <smallm@sdf.org>
#
# 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

4
README
View File

@ -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

View File

@ -24,6 +24,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <err.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>