Add Makefile, changelog, include err.h, url in README
This commit is contained in:
parent
008d73c1d6
commit
6735c09ed1
15
ChangeLog
Normal file
15
ChangeLog
Normal 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
20
Makefile
Normal 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
4
README
@ -1,6 +1,6 @@
|
|||||||
A program to strip ansi codes from text files.
|
A program to strip ansi codes from text files.
|
||||||
|
|
||||||
Looks to have only appeared in a NetBSD packaging request, problem report 48092.
|
Looks to have only appeared in a NetBSD packaging request, problem report 48092
|
||||||
See netbsd_gnat_pkging_request.origin which was saved from
|
by Nathanial Sloss. See netbsd_gnat_pkging_request.origin which was saved from
|
||||||
https://gnats.netbsd.org/48092
|
https://gnats.netbsd.org/48092
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <err.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user