add a copyright section to the man page

This commit is contained in:
Erik Auerswald
2021-05-01 19:11:48 +02:00
parent ab6dab59ad
commit 3699b42d2a
2 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -9,6 +9,7 @@ MANDIR := $(PREFIX)/share/man/man1
DOCDIR := $(PREFIX)/share/doc/ssocr
DOCS := AUTHORS COPYING INSTALL README THANKS
VERSION := $(shell sed -n 's/^.*VERSION.*\(".*"\).*/\1/p' defines.h)
CRYEARS := $(shell sed -n 's/^.*fprintf.*Copyright.*\(2004-2[0-9][0-9][0-9]\).*Erik.*Auerswald.*$$/\1/p' help.c)
all: ssocr ssocr.1
@@ -20,8 +21,9 @@ help.o: help.c defines.h imgproc.h help.h Makefile
charset.o: charset.c charset.h defines.h help.h Makefile
ssocr.1: ssocr.1.in Makefile
sed -e "s/@VERSION@/$(VERSION)/" \
-e "s/@DATE@/$(shell date +%Y-%m-%d)/" <$< >$@
sed -e 's/@VERSION@/$(VERSION)/' \
-e "s/@DATE@/$(shell date +%Y-%m-%d)/" \
-e 's/@CRYEARS@/$(CRYEARS)/' <$< >$@
ssocr-manpage.html: ssocr.1
rman -f html -r '' $< >$@
+6
View File
@@ -455,6 +455,12 @@ images.
.SH AUTHOR
.B ssocr
was written by Erik Auerswald <auerswal@unix-ag.uni-kl.de>.
.SH COPYRIGHT
Copyright \(co @CRYEARS@ Erik Auerswald.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
.BR netpbm (1),
.BR ImageMagick (1),