Incorporate colophon into Makefile
authorArmaan Bhojwani <me@armaanb.net>
Mon, 10 May 2021 23:29:42 +0000 (19:29 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 10 May 2021 23:29:42 +0000 (19:29 -0400)
Makefile
man/toupperw.3.scd

index 613c1077ef7441b0ae7022dc8434fe63339abdb7..fc46d4bc755f6418c5956c8f136cadd303abc00b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,9 @@ lib:
 
 man:
        for i in man/*.scd; do \
-               scdoc < $$i > $$(echo "$$i" | rev | cut -f 2- -d '.' | rev); \
+               outp=$$(echo "$$i" | rev | cut -f 2- -d '.' | rev); \
+               scdoc < $$i > $$outp; \
+               echo ".SH COLOPHON\n This page is a part of libacheam(3).\&" >> $$outp; \
        done
 
 install: all
index 885627eb36600423ab5bf8ff362e41c5301cf8f5..28090da8e67e24418fd4a17ca1d30222c1171484 100644 (file)
@@ -20,6 +20,3 @@ A pointer to the converted string.
 
 # SEE ALSO
 toupper(3), tolower(3)
-
-# COLOPHON
-This page is a part of libacheam(3).