Skip to content

Commit

Permalink
please.sh: Allow passing extra arguments to make_installers_from_ming…
Browse files Browse the repository at this point in the history
…w_w64_git

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
  • Loading branch information
dennisameling committed Jan 30, 2021
1 parent 1db746a commit dc69222
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion please.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4770,12 +4770,13 @@ build_mingw_w64_git () { # [--only-32-bit] [--only-64-bit] [--skip-test-artifact
}
# This function does not "clean up" after installing the packages
make_installers_from_mingw_w64_git () { # [--pkg=<package>[,<package>...]] [--version=<version>] [--installer] [--portable] [--mingit] [--mingit-busybox] [--nuget] [--nuget-mingit] [--archive]
make_installers_from_mingw_w64_git () { # [--pkg=<package>[,<package>...]] [--version=<version>] [--installer] [--portable] [--mingit] [--mingit-busybox] [--nuget] [--nuget-mingit] [--archive] [--extra-args]
modes=
install_package=
output=
output_path=
version=0-test
extra_args=
while case "$1" in
--pkg=*)
install_package="${install_package:+$install_package }$(echo "${1#*=}" | tr , ' ')"
Expand Down Expand Up @@ -4820,6 +4821,9 @@ make_installers_from_mingw_w64_git () { # [--pkg=<package>[,<package>...]] [--ve
output_path="$(cygpath -am "${1#-?}")"
output="--output=$output_path" || exit
;;
--extra-args=*)
extra_args="${1#*=}"
;;
-*) die "Unknown option: %s\n" "$1";;
*) break;;
esac; do shift; done
Expand Down Expand Up @@ -4855,6 +4859,7 @@ make_installers_from_mingw_w64_git () { # [--pkg=<package>[,<package>...]] [--ve
test installer != $mode ||
extra="${extra:+$extra }--window-title-version=$version"
extra=${extra:+$extra }${extra_args}
sh -x "${this_script_path%/*}/$mode/release.sh" $output $extra $version
done
}
Expand Down

0 comments on commit dc69222

Please sign in to comment.