[hackers] [libgrapheme] Add automatic manual date and templates to MAN_TEMPLATE || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sun, 28 Aug 2022 15:36:03 +0200 (CEST)

commit e229e779acb4aec6a97551872e1f12a2ce46a9aa
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun Aug 28 15:35:14 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun Aug 28 15:35:14 2022 +0200

    Add automatic manual date and templates to MAN_TEMPLATE
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/Makefile b/Makefile
index bbf6714..501b372 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -58,8 +58,12 @@ TEST =\
         test/utf8-encode\
         test/word\
 
+MAN_DATE = 2022-08-28
+
 MAN_TEMPLATE =\
- man/template/to_case.sh
+ man/template/next_break.sh\
+ man/template/next_break_utf8.sh\
+ man/template/to_case.sh\
 
 MAN3 =\
         man/grapheme_decode_utf8\
_AT_@ -234,10 +238,10 @@ libgrapheme.so: $(SRC:=.o)
         $(CC) -o $_AT_ $(SOFLAGS) $(LDFLAGS) $(SRC:=.o)
 
 $(MAN3:=.3):
- SH=$(SH) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(_AT_:.3=.sh) > $@
+ SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(_AT_:.3=.sh) > $@
 
 $(MAN7:=.7):
- SH=$(SH) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(_AT_:.7=.sh) > $@
+ SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(_AT_:.7=.sh) > $@
 
 benchmark: $(BENCHMARK)
         for m in $(BENCHMARK); do ./$$m; done
diff --git a/man/grapheme_decode_utf8.sh b/man/grapheme_decode_utf8.sh
index a6fd932..584025f 100644
--- a/man/grapheme_decode_utf8.sh
+++ b/man/grapheme_decode_utf8.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_DECODE_UTF8 3
 .Os suckless.org
 .Sh NAME
diff --git a/man/grapheme_encode_utf8.sh b/man/grapheme_encode_utf8.sh
index d57a129..d1ecad7 100644
--- a/man/grapheme_encode_utf8.sh
+++ b/man/grapheme_encode_utf8.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_ENCODE_UTF8 3
 .Os suckless.org
 .Sh NAME
diff --git a/man/grapheme_is_character_break.sh b/man/grapheme_is_character_break.sh
index 9adc83e..86235ce 100644
--- a/man/grapheme_is_character_break.sh
+++ b/man/grapheme_is_character_break.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_IS_CHARACTER_BREAK 3
 .Os suckless.org
 .Sh NAME
diff --git a/man/libgrapheme.sh b/man/libgrapheme.sh
index e018001..327cc6e 100644
--- a/man/libgrapheme.sh
+++ b/man/libgrapheme.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt LIBGRAPHEME 7
 .Os suckless.org
 .Sh NAME
diff --git a/man/template/next_break.sh b/man/template/next_break.sh
index 143d8e6..588e49b 100644
--- a/man/template/next_break.sh
+++ b/man/template/next_break.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_NEXT_$(printf $TYPE | tr [:lower:] [:upper:])_BREAK 3
 .Os suckless.org
 .Sh NAME
diff --git a/man/template/next_break_utf8.sh b/man/template/next_break_utf8.sh
index cc14965..046dd45 100644
--- a/man/template/next_break_utf8.sh
+++ b/man/template/next_break_utf8.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_NEXT_$(printf $TYPE | tr [:lower:] [:upper:])_BREAK_UTF8 3
 .Os suckless.org
 .Sh NAME
diff --git a/man/template/to_case.sh b/man/template/to_case.sh
index 5fbfbfb..d365756 100644
--- a/man/template/to_case.sh
+++ b/man/template/to_case.sh
_AT_@ -1,5 +1,5 @@
 cat << EOF
-.Dd 2022-08-26
+.Dd $MAN_DATE
 .Dt GRAPHEME_TO_$(printf $CASE | tr [:lower:] [:upper:]) 3
 .Os suckless.org
 .Sh NAME
Received on Sun Aug 28 2022 - 15:36:03 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 28 2022 - 15:36:40 CEST