diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-07-28 13:05:54 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-07-28 14:10:31 -0300 |
commit | 200f389ed0f56ba42160fe135e3701757a8df94c (patch) | |
tree | 644ebe2eccff1991e11ff1f6391df0f60e9978f1 /test | |
parent | build: fix shellcheck issues in mkrpm.sh/compile.sh (diff) | |
download | firejail-200f389ed0f56ba42160fe135e3701757a8df94c.tar.gz firejail-200f389ed0f56ba42160fe135e3701757a8df94c.tar.zst firejail-200f389ed0f56ba42160fe135e3701757a8df94c.zip |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/compile/compile.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
11 | # install contrib scripts | 11 | # install contrib scripts |
12 | # --enable-analyzer enable GCC 10 static analyzer | 12 | # --enable-analyzer enable GCC 10 static analyzer |
13 | 13 | ||
14 | 14 | # shellcheck source=config.sh | |
15 | . "$(dirname "$0")/../../config.sh" || exit 1 | ||
15 | 16 | ||
16 | arr[1]="TEST 1: standard compilation" | 17 | arr[1]="TEST 1: standard compilation" |
17 | arr[2]="TEST 2: compile dbus proxy disabled" | 18 | arr[2]="TEST 2: compile dbus proxy disabled" |
@@ -51,7 +52,7 @@ print_title() { | |||
51 | echo "**************************************************" | 52 | echo "**************************************************" |
52 | } | 53 | } |
53 | 54 | ||
54 | DIST="$1" | 55 | DIST="$(TARNAME)-$(VERSION)" |
55 | while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . | 56 | while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . |
56 | case "$1" in | 57 | case "$1" in |
57 | --clean) | 58 | --clean) |