diff options
author | Linus Groh <mail@linusgroh.de> | 2021-03-23 22:41:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-24 20:38:05 +0100 |
commit | ad4cc19ca0332e091ae4eb2f2bde445a5cdf2585 (patch) | |
tree | 0c5b3986592cb6c2383b17ad10a991ea3438ef76 /Meta | |
parent | 391d1ddfd87dc3cd77783e62299fb1df956ad3ce (diff) | |
download | serenity-ad4cc19ca0332e091ae4eb2f2bde445a5cdf2585.zip |
Meta: Pass arguments to 'serenity.sh run lagom' executable
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/serenity.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Meta/serenity.sh b/Meta/serenity.sh index a054e74b0c..e4574465dd 100755 --- a/Meta/serenity.sh +++ b/Meta/serenity.sh @@ -10,9 +10,9 @@ Usage: $ARG0 COMMAND [TARGET] [ARGS...] build: Compiles the target binaries, [ARGS...] are passed through to ninja install: Installs the target binary image: Creates a disk image with the installed binaries - run: TARGET lagom: $ARG0 run lagom LAGOM_EXECUTABLE - Runs the Lagom-built LAGOM_EXECUTABLE on the build host, - e.g. 'shell' or 'js' + run: TARGET lagom: $ARG0 run lagom LAGOM_EXECUTABLE [ARGS...] + Runs the Lagom-built LAGOM_EXECUTABLE on the build host, e.g. + 'shell' or 'js', [ARGS...] are passed through to the executable All other TARGETs: $ARG0 run [TARGET] [KERNEL_CMD_LINE] Runs the built image in QEMU, and optionally passes the 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 $ARG0 run 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 $ARG0 test lagom 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) if [ "$TARGET" = "lagom" ]; then - build_target "$@" - "$BUILD_DIR/Meta/Lagom/${CMD_ARGS[0]}" + build_target "${CMD_ARGS[0]}" + "$BUILD_DIR/Meta/Lagom/${CMD_ARGS[0]}" "${CMD_ARGS[@]:1}" else build_target build_target install |