diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2019-12-24 12:53:22 +1300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 02:19:59 +0100 |
commit | ef6eb07468e410f576d1011ddde2029035c170aa (patch) | |
tree | 8781b6a4fb1d6944514c6303ce1eb729d97bd4e5 | |
parent | 0fdbe0863732da3b3a0c3c749878d9848e1f4b97 (diff) | |
download | serenity-ef6eb07468e410f576d1011ddde2029035c170aa.zip |
Build: Meta: Allow makeall.sh and run to be called from any directory
These scripts assume that they are called from within Kernel/ directory.
For convenience, set the current working directory in the scripts to the
path where they are located.
-rwxr-xr-x | Kernel/makeall.sh | 3 | ||||
-rwxr-xr-x | Kernel/run | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/makeall.sh b/Kernel/makeall.sh index e1beaea98e..26b44c8891 100755 --- a/Kernel/makeall.sh +++ b/Kernel/makeall.sh @@ -1,6 +1,9 @@ #!/bin/sh set -e +script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) +cd "$script_path" + # Get user and group details for setting qemu disk image ownership export build_user=$(id -u) export build_group=$(id -g) diff --git a/Kernel/run b/Kernel/run index b666ea3543..d5709adf8d 100755 --- a/Kernel/run +++ b/Kernel/run @@ -1,5 +1,8 @@ #!/bin/sh +script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) +cd "$script_path" + #SERENITY_PACKET_LOGGING_ARG="-object filter-dump,id=hue,netdev=breh,file=e1000.pcap" [ -e /dev/kvm -a -r /dev/kvm -a -w /dev/kvm ] && SERENITY_KVM_ARG="-enable-kvm" |