]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
dmaketgz: accept a SOURCE_DATE_EPOCH as an second argument
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 May 2024 06:50:47 +0000 (08:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 May 2024 08:57:41 +0000 (10:57 +0200)
to make it easier to reproduce a tarball

Closes #13573

scripts/dmaketgz

index 6603a38ec7f65db2ff2888e0839163aa028d93d9..25874793b3df820bc968039dfc1ae81c230e1a5d 100755 (executable)
@@ -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 .