Skip to content

Commit

Permalink
dmaketgz: accept a SOURCE_DATE_EPOCH as an second argument
Browse files Browse the repository at this point in the history
to make it easier to reproduce a tarball

Closes #13573
  • Loading branch information
bagder committed May 10, 2024
1 parent 6e6be48 commit bc5261a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dmaketgz
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit bc5261a

Please sign in to comment.