From: Daniel Stenberg Date: Tue, 16 Apr 2024 14:56:03 +0000 (+0200) Subject: dmaketgz: release tarball generation using docker X-Git-Tag: curl-8_8_0~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d28f74913c2e85664178fc9937e067df7e8f9566;p=thirdparty%2Fcurl.git dmaketgz: release tarball generation using docker For easier reproducibility. Mention using this script in RELEASE-PROCEDURE Closes #13388 --- diff --git a/docs/RELEASE-PROCEDURE.md b/docs/RELEASE-PROCEDURE.md index 20b6cfc11c..03db8ae2f0 100644 --- a/docs/RELEASE-PROCEDURE.md +++ b/docs/RELEASE-PROCEDURE.md @@ -23,9 +23,7 @@ in the source code repo tag and we use underscores instead of dots in the version number. Make sure the tag is GPG signed (using -s). -- run `./maketgz 7.34.0` to build the release tarballs. It is important that - you run this on a machine with the correct set of autotools etc installed as - this is what is shipped and used by most users on \*nix like systems. +- run `./scripts/dmaketgz 7.34.0` to build the release tarballs. - push the git commits and the new tag diff --git a/scripts/Makefile.am b/scripts/Makefile.am index ad48771942..772c7bd8da 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -23,7 +23,8 @@ ########################################################################### EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \ - mk-ca-bundle.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen + mk-ca-bundle.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen \ + dmaketgz ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@ FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@ diff --git a/scripts/dmaketgz b/scripts/dmaketgz new file mode 100755 index 0000000000..e361d35b77 --- /dev/null +++ b/scripts/dmaketgz @@ -0,0 +1,52 @@ +#!/bin/sh +# docker-maketgz +# +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# \___|\___/|_| \_\_____| +# +# Copyright (C) Daniel Stenberg, , et al. +# +# This software is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at https://curl.se/docs/copyright.html. +# +# You may opt to use, copy, modify, merge, publish, distribute and/or sell +# copies of the Software, and permit persons to whom the Software is +# furnished to do so, under the terms of the COPYING file. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# +# SPDX-License-Identifier: curl +# +########################################################################### + +version="${1:-}" + +if [ -z "$version" ]; then + echo "Specify a version number!" + exit +fi + +make distclean +docker build \ + --build-arg SOURCE_DATE_EPOCH="$(date -u +%s)" \ + --build-arg UID="$(id -u)" \ + --build-arg GID="$(id -g)" \ + -t curl/curl . + +run="run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl" + +# shellcheck disable=SC2086 +# "Double quote to prevent globbing and word splitting" on the $run use below +docker $run autoreconf -fi +# shellcheck disable=SC2086 +docker $run ./configure --without-ssl --without-libpsl +# shellcheck disable=SC2086 +docker $run make -sj8 +# shellcheck disable=SC2086 +docker $run ./maketgz $version