diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-09-26 20:46:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-05 02:13:08 +0200 |
commit | e507cfcdb0cc3be9e8e3304952c81d4410e6b610 (patch) | |
tree | 27660032342c6a43bcce829645f04e100f0bd1db /Ports | |
parent | 52e9f254032b7c5bc59f8eeb4cfaeb5cd9df323a (diff) | |
download | serenity-e507cfcdb0cc3be9e8e3304952c81d4410e6b610.zip |
Ports: Set defaults before loading package.sh
This is too much bash magic for a simple "Use this value if the script
doesn't set anything", especially since only one default setting depends
on values from the script.
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/.port_include.sh | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 93f8006289..bf953a5a8c 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -54,25 +54,26 @@ host_env() { packagesdb="${DESTDIR}/usr/Ports/packages.db" +makeopts=-j$(nproc) +installopts= +configscript=configure +configopts= +useconfigure=false +depends= +patchlevel=1 +auth_type= +auth_import_key= +auth_opts= +launcher_name= +launcher_category= +launcher_command= +launcher_run_in_terminal=false +icon_file= + . "$@" shift -: "${makeopts:=-j$(nproc)}" -: "${installopts:=}" : "${workdir:=$port-$version}" -: "${configscript:=configure}" -: "${configopts:=}" -: "${useconfigure:=false}" -: "${depends:=}" -: "${patchlevel:=1}" -: "${auth_type:=}" -: "${auth_import_key:=}" -: "${auth_opts:=}" -: "${launcher_name:=}" -: "${launcher_category:=}" -: "${launcher_command:=}" -: "${launcher_run_in_terminal:=false}" -: "${icon_file:=}" run_nocd() { echo "+ $@ (nocd)" |