From fd6c16c345160a7728e0609788d76d36dcbb3fd7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Apr 2024 17:14:35 +0200 Subject: [PATCH] release-tools.sh: store the timestamp and release tag too When maketgz invokes this script to generate the docs/RELEASE-TOOLS.md file that gets bundled in the release, it now also passes on the exact timestamp and version number so that those details also get mentioned in the document. They will help users reproduce an identical tarball. Closes #13319 --- maketgz | 2 +- scripts/release-tools.sh | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/maketgz b/maketgz index c2c359aafa..1824ff7f88 100755 --- a/maketgz +++ b/maketgz @@ -168,7 +168,7 @@ echo "produce CHANGES" git log --pretty=fuller --no-color --date=short --decorate=full -1000 | ./scripts/log2changes.pl > CHANGES.dist echo "produce RELEASE-TOOLS.md" -./scripts/release-tools.sh > docs/RELEASE-TOOLS.md.dist +./scripts/release-tools.sh "$timestamp" "$version" > docs/RELEASE-TOOLS.md.dist ############################################################################ # diff --git a/scripts/release-tools.sh b/scripts/release-tools.sh index 57c8c2fb01..86cde74902 100755 --- a/scripts/release-tools.sh +++ b/scripts/release-tools.sh @@ -25,8 +25,13 @@ set -eu +# this should ideally be passed in +timestamp=${1:-unknown} +version=${2:-unknown} +tag=$(echo "curl-$version" | tr '.' '_') + cat <