commit e229e779acb4aec6a97551872e1f12a2ce46a9aa
parent 1157be852f7a057d87db412cbc30fd5b8850f44d
Author: Laslo Hunhold <dev@frign.de>
Date: Sun, 28 Aug 2022 15:35:14 +0200
Add automatic manual date and templates to MAN_TEMPLATE
Signed-off-by: Laslo Hunhold <dev@frign.de>
Diffstat:
8 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
@@ -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\
@@ -234,10 +238,10 @@ libgrapheme.so: $(SRC:=.o)
$(CC) -o $@ $(SOFLAGS) $(LDFLAGS) $(SRC:=.o)
$(MAN3:=.3):
- SH=$(SH) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.3=.sh) > $@
+ SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.3=.sh) > $@
$(MAN7:=.7):
- SH=$(SH) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.7=.sh) > $@
+ SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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