From: Daniel Stenberg Date: Mon, 8 Apr 2024 15:14:35 +0000 (+0200) Subject: release-tools.sh: store the timestamp and release tag too X-Git-Tag: curl-8_8_0~271 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd6c16c345160a7728e0609788d76d36dcbb3fd7;p=thirdparty%2Fcurl.git 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 --- 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 <