[openssl/tools] e7fe5a: release-tools/do-copyright-year: Modify files with...

Richard Levitte noreply at github.com
Fri May 26 11:42:00 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/tools
  Commit: e7fe5ab5f660a7b965947fc097896d540f5f8de8
      https://github.com/openssl/tools/commit/e7fe5ab5f660a7b965947fc097896d540f5f8de8
  Author: Richard Levitte <levitte at openssl.org>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M release-tools/do-copyright-year

  Log Message:
  -----------
  release-tools/do-copyright-year: Modify files with more care

Files were modified by running a simple in-place sed (i.e. 'sed -i').
This turns out to update the modification time on every file, even those
that remain unmodified.

The effect is that time stamps in a source directory become unreliable,
causing configdata.pm to be "mysteriously" older than (unmodified) files it
depends on, which causes a spurious reconfiguration when running 'make'
again.

To mediate, the loop is modified to take copies of the original files, run
an in-place sed on those, and only move them back to the original files if
there were any actual modifications.  That should leave time stamps alone on
unmodified files.

Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/tools/pull/151)




More information about the openssl-commits mailing list