[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: |
Janneke Nieuwenhuizen |
Subject: |
[bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date. |
Date: |
Wed, 03 Apr 2024 22:36:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ludovic Courtès writes:
> 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" "$@"
Makes sense, thanks.
[bug#70169] [PATCH v2 00/12] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Janneke Nieuwenhuizen, 2024/04/06