guix-patches
[Top][All Lists]
Advanced

[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" "$@"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]