1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00
serenity/Kernel/makeall.sh
Shannon Booth ef6eb07468 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.
2019-12-24 02:19:59 +01:00

17 lines
368 B
Bash
Executable file

#!/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)
sudo id
make -C ../ clean && \
make -C ../ && \
make -C ../ test && \
make -C ../ install &&
sudo -E PATH="$PATH" ./build-image-qemu.sh