From 200f389ed0f56ba42160fe135e3701757a8df94c Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Fri, 28 Jul 2023 13:05:54 -0300 Subject: build: use config.sh in more scripts This removes the need to manually pass variables such as `$(TARNAME)` and `$(VERSION)` to shell scripts in the root Makefile. Relates to #5140. --- test/compile/compile.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/compile') diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 06b4646a8..0e3425f8d 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh @@ -11,7 +11,8 @@ # install contrib scripts # --enable-analyzer enable GCC 10 static analyzer - +# shellcheck source=config.sh +. "$(dirname "$0")/../../config.sh" || exit 1 arr[1]="TEST 1: standard compilation" arr[2]="TEST 2: compile dbus proxy disabled" @@ -51,7 +52,7 @@ print_title() { echo "**************************************************" } -DIST="$1" +DIST="$(TARNAME)-$(VERSION)" while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . case "$1" in --clean) -- cgit v1.2.3-70-g09d2