dmaketgz: accept a SOURCE_DATE_EPOCH as an second argument

to make it easier to reproduce a tarball

Closes #13573
This commit is contained in:
Daniel Stenberg 2024-05-10 08:50:47 +02:00
parent 6e6be487d6
commit bc5261a1b4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -34,9 +34,11 @@ if [ -z "$version" ]; then
exit
fi
timestamp="${2:-$(date -u +%s)}"
make distclean
docker build \
--build-arg SOURCE_DATE_EPOCH="$(date -u +%s)" \
--build-arg SOURCE_DATE_EPOCH="$timestamp" \
--build-arg UID="$(id -u)" \
--build-arg GID="$(id -g)" \
-t curl/curl .