mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue