mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:23:30 +03:00
dmaketgz: compacter
Removes the need for disabling shellcheck warnings.
Follow-up to d28f74913c
Proposed-by: Viktor Szakats
Closes #13391
This commit is contained in:
parent
5b94eced85
commit
7afb0e1b9e
1 changed files with 9 additions and 11 deletions
|
|
@ -25,6 +25,8 @@
|
||||||
#
|
#
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
version="${1:-}"
|
version="${1:-}"
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
|
|
@ -39,14 +41,10 @@ docker build \
|
||||||
--build-arg GID="$(id -g)" \
|
--build-arg GID="$(id -g)" \
|
||||||
-t curl/curl .
|
-t curl/curl .
|
||||||
|
|
||||||
run="run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl"
|
docker run --rm -it -u "$(id -u):$(id -g)" \
|
||||||
|
-v "$(pwd):/usr/src" -w /usr/src curl/curl sh -c "
|
||||||
# shellcheck disable=SC2086
|
set -e
|
||||||
# "Double quote to prevent globbing and word splitting" on the $run use below
|
autoreconf -fi
|
||||||
docker $run autoreconf -fi
|
./configure --without-ssl --without-libpsl
|
||||||
# shellcheck disable=SC2086
|
make -sj8
|
||||||
docker $run ./configure --without-ssl --without-libpsl
|
./maketgz $version"
|
||||||
# shellcheck disable=SC2086
|
|
||||||
docker $run make -sj8
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
docker $run ./maketgz $version
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue