[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Cr
From: |
Ludovic Courtès |
Subject: |
[bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date. |
Date: |
Wed, 03 Apr 2024 22:26:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Janneke Nieuwenhuizen <janneke@gnu.org> skribis:
> + date=$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \
> + || echo $(SOURCE_DATE_EPOCH)) \
> + sed -ri -e "s,^(.POT-Creation-Date: )[^\]*,\1$$date," $@-t
> + mv $@-t $@
Nitpick: I'd use double quotes to avoid bad surprises:
date="$$(git log …)"
…
mv "$@-t" "$@"
- [bug#70169] [PATCH 1/7] maint: Cater for running `make dist' from a worktree., (continued)
- [bug#70169] [PATCH 3/7] maint: Generate 'doc/version.texi' reproducibly., Janneke Nieuwenhuizen, 2024/04/03
- [bug#70169] [PATCH 7/7] maint: Ensure generated file reproducibility for dist., Janneke Nieuwenhuizen, 2024/04/03
- [bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date., Janneke Nieuwenhuizen, 2024/04/03
- [bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date.,
Ludovic Courtès <=
- [bug#70169] [PATCH 0/7] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Ludovic Courtès, 2024/04/03
[bug#70169] [PATCH v2 00/12] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Janneke Nieuwenhuizen, 2024/04/06