1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  makedist: Reset tar timestamps to the commit date (#13879)
This commit is contained in:
Tim Düsterhus
2024-04-04 13:26:36 +02:00

View File

@@ -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 ..