1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:37:44 +00:00

Meta: Allow running run.sh from any where by setting SERENITY_BUILD

If SERENITY_BUILD is not set or empty, SERENITY_BUILD is treated as if
it was set to '.'.

`run.sh` will cd to SERENITY_BUILD before running the emulator.

Also, export SERENITY_BUILD in `Meta/CLion/run.sh` since we are using it
in `Meta/run.sh`.

Also, allow using a different bochs configuration file by setting the
SERENITY_BOCHSRC variable.
This commit is contained in:
Emanuele Torre 2020-06-24 04:47:20 +02:00 committed by Andreas Kling
parent aabb482d5c
commit 1d9791bcdf
2 changed files with 15 additions and 1 deletions

View file

@ -7,6 +7,7 @@ export SERENITY_RAM_SIZE
# set this to the Build directory in serenity
: "${SERENITY_BUILD:='/mnt/c/Users/Ragnarok/serenity-project/serenity/Build'}"
export SERENITY_BUILD
cd -P -- "$SERENITY_BUILD" || exit
make install