Skip to content

Improve autodate.sh

Akira Yokosawa perfbook 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3utilities/autodate: Use 'fmtcount' package for ordinalsperfbook.tex utilities/autodate.sh+6 -220 replies
2/3utilities/autodate: Ignore untracked files in 'git status'utilities/autodate.sh+1 -10 replies
3/3utilities/autodate: Put commit-id in footer by 'draftwatermark'FAQ-BUILD.txt perfbook.tex utilities/autodate.sh+18 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Improve autodate.sh

This patch set was inspired by your change log of commit 686915e83f79 ("utilities/autodate: Convert current tag to release/edition text") saying:

This should really use a canned library to convert numerals to English-text ordinals, but none of the ones I found worked as advertised.

My guess is the ones you found are assuming bash and don't work with dash. You know, dash doesn't handle arrays.

Patch #1 is my answer and delegates the handling of ordinals to a LaTeX package "fmtcount".
Patch #2 is a minor update so that a repository with untracked files is treated as clean.
Patch #3 expands the use of tag info and displays it on every page at the bottom-right corner.

Thanks, Akira
--
Akira Yokosawa (3):
utilities/autodate: Use 'fmtcount' package for ordinals utilities/autodate: Ignore untracked files in 'git status' utilities/autodate: Put commit-id in footer by 'draftwatermark'

 FAQ-BUILD.txt         |  6 ++++--
 perfbook.tex          |  9 +++++++++
 utilities/autodate.sh | 35 ++++++++++++-----------------------
 3 files changed, 25 insertions(+), 25 deletions(-)
Signature · 1 line
2.17.1