mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
makedist: Reset tar timestamps to the commit date (#13879)
This change should make the underlying `.tar` archive fully reproducible (given identical tool versions).
This commit is contained in:
parent
e7462bff19
commit
c89d797a41
@ -167,8 +167,9 @@ else
|
||||
fi
|
||||
|
||||
# Reset the modification and access times of all files to be packaged.
|
||||
echo "makedist: Resetting the modification and access times of package files."
|
||||
touch -c NEWS
|
||||
commitDate="$(git log -1 --format=%cI $treeish)"
|
||||
echo "makedist: Resetting the modification and access times of package files to $commitDate"
|
||||
touch -c -d"$commitDate" NEWS
|
||||
find . -exec touch -r NEWS -c {} \;
|
||||
|
||||
cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user