summaryrefslogtreecommitdiff
path: root/Ports/dash/package.sh
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-09-27 00:16:18 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-05 02:13:08 +0200
commitc07f91474de4088c4eccd45ccc6883a515439d69 (patch)
tree19bdb4797935e826f638053ea8d4250bd453dd0a /Ports/dash/package.sh
parente507cfcdb0cc3be9e8e3304952c81d4410e6b610 (diff)
downloadserenity-c07f91474de4088c4eccd45ccc6883a515439d69.zip
Ports: Make array-like settings actual arrays
We may need entries with spaces in makeopts, installopts, and configopts, and at that point we should also convert depends and auth_opts to avoid confusion.
Diffstat (limited to 'Ports/dash/package.sh')
-rwxr-xr-xPorts/dash/package.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ports/dash/package.sh b/Ports/dash/package.sh
index 4a7df559f1..ba1ca74ca1 100755
--- a/Ports/dash/package.sh
+++ b/Ports/dash/package.sh
@@ -12,20 +12,20 @@ configure() {
run aclocal
run automake --add-missing
run mkdir -p host-build
- run sh -c "cd host-build && ../configure $configopts CFLAGS=-I."
+ run sh -c "cd host-build && ../configure ${configopts[@]} CFLAGS=-I."
target_env
run mkdir -p target-build
- run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers $configopts CFLAGS=-I."
+ run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers ${configopts[@]} CFLAGS=-I."
}
build() {
host_env
- run sh -c "cd host-build && make $makeopts"
+ run sh -c "cd host-build && make ${makeopts[@]}"
run cp host-build/src/{mkinit,mksyntax,mknodes,mksignames} src
target_env
- run sh -c "cd target-build && make $makeopts"
+ run sh -c "cd target-build && make ${makeopts[@]}"
}
install() {
- run sh -c "cd target-build && make DESTDIR="${SERENITY_INSTALL_ROOT}" $installopts install"
+ run sh -c "cd target-build && make DESTDIR="${SERENITY_INSTALL_ROOT}" ${installopts[@]} install"
}