mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
Meta: Pass arguments to 'serenity.sh run lagom' executable
This commit is contained in:
parent
391d1ddfd8
commit
ad4cc19ca0
1 changed files with 6 additions and 6 deletions
|
@ -10,9 +10,9 @@ Usage: $ARG0 COMMAND [TARGET] [ARGS...]
|
||||||
build: Compiles the target binaries, [ARGS...] are passed through to ninja
|
build: Compiles the target binaries, [ARGS...] are passed through to ninja
|
||||||
install: Installs the target binary
|
install: Installs the target binary
|
||||||
image: Creates a disk image with the installed binaries
|
image: Creates a disk image with the installed binaries
|
||||||
run: TARGET lagom: $ARG0 run lagom LAGOM_EXECUTABLE
|
run: TARGET lagom: $ARG0 run lagom LAGOM_EXECUTABLE [ARGS...]
|
||||||
Runs the Lagom-built LAGOM_EXECUTABLE on the build host,
|
Runs the Lagom-built LAGOM_EXECUTABLE on the build host, e.g.
|
||||||
e.g. 'shell' or 'js'
|
'shell' or 'js', [ARGS...] are passed through to the executable
|
||||||
All other TARGETs: $ARG0 run [TARGET] [KERNEL_CMD_LINE]
|
All other TARGETs: $ARG0 run [TARGET] [KERNEL_CMD_LINE]
|
||||||
Runs the built image in QEMU, and optionally passes the
|
Runs the built image in QEMU, and optionally passes the
|
||||||
KERNEL_CMD_LINE to the Kernel
|
KERNEL_CMD_LINE to the Kernel
|
||||||
|
@ -44,7 +44,7 @@ Usage: $ARG0 COMMAND [TARGET] [ARGS...]
|
||||||
Runs the image in QEMU passing "smp=on" to the kernel command line
|
Runs the image in QEMU passing "smp=on" to the kernel command line
|
||||||
$ARG0 run
|
$ARG0 run
|
||||||
Runs the image for the default TARGET i686 in QEMU
|
Runs the image for the default TARGET i686 in QEMU
|
||||||
$ARG0 run lagom js
|
$ARG0 run lagom js -A
|
||||||
Runs the Lagom-built js(1) REPL
|
Runs the Lagom-built js(1) REPL
|
||||||
$ARG0 test lagom
|
$ARG0 test lagom
|
||||||
Runs the unit tests on the build host
|
Runs the unit tests on the build host
|
||||||
|
@ -225,8 +225,8 @@ if [[ "$CMD" =~ ^(build|install|image|run|gdb|test|rebuild|recreate|kaddr2line|a
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
if [ "$TARGET" = "lagom" ]; then
|
if [ "$TARGET" = "lagom" ]; then
|
||||||
build_target "$@"
|
build_target "${CMD_ARGS[0]}"
|
||||||
"$BUILD_DIR/Meta/Lagom/${CMD_ARGS[0]}"
|
"$BUILD_DIR/Meta/Lagom/${CMD_ARGS[0]}" "${CMD_ARGS[@]:1}"
|
||||||
else
|
else
|
||||||
build_target
|
build_target
|
||||||
build_target install
|
build_target install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue