refactor: Rename '--target-*' options

This commit is contained in:
Serge Guzik 2019-02-16 17:47:37 +02:00
parent bd33a10f07
commit 85c9732271
2 changed files with 9 additions and 9 deletions

View File

@ -92,9 +92,9 @@ Options:
--pull check if more recent JDK/JRE distro is available;
by default latest cached version that matches
"--java-version" is used
--target-linux create binary for Linux
--target-macos create binary for macOS
--target-windows create binary for Windows
--linux create binary for Linux
--macos create binary for macOS
--windows create binary for Windows
if no targets are specified then binaries for
all targets are created
--jvm-impl jvm implementation: hotspot or openj9

12
warp4j
View File

@ -22,9 +22,9 @@ function print_help {
echo ' --pull check if more recent JDK/JRE distro is available;'
echo ' by default latest cached version that matches'
echo ' "--java-version" is used'
echo ' --target-linux create binary for Linux'
echo ' --target-macos create binary for macOS'
echo ' --target-windows create binary for Windows'
echo ' --linux create binary for Linux'
echo ' --macos create binary for macOS'
echo ' --windows create binary for Windows'
echo ' if no targets are specified then binaries for'
echo ' all targets are created'
echo ' --jvm-impl jvm implementation: hotspot or openj9'
@ -95,15 +95,15 @@ while [[ $# -gt 0 ]]; do
PULL=true
shift
;;
--target-linux)
--linux)
TARGETS+=($LIN)
shift
;;
--target-macos)
--macos)
TARGETS+=($MAC)
shift
;;
--target-windows)
--windows)
TARGETS+=($WIN)
shift
;;