mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
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:
parent
6e6be487d6
commit
bc5261a1b4
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user