diff --git a/Makefile b/Makefile index 43c7ce1..6b52fe5 100644 --- a/Makefile +++ b/Makefile @@ -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 '' $< >$@ diff --git a/ssocr.1.in b/ssocr.1.in index d8ddad3..4ff5946 100644 --- a/ssocr.1.in +++ b/ssocr.1.in @@ -455,6 +455,12 @@ images. .SH AUTHOR .B ssocr was written by Erik Auerswald . +.SH COPYRIGHT +Copyright \(co @CRYEARS@ Erik Auerswald. +License GPLv3+: GNU GPL version 3 or later . +.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),