mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
21517f693d
Passing the "-f" or "--fast" option to the ./makeall.sh script will build everything without cleaning first, and then will skip tests.
43 lines
949 B
Bash
Executable file
43 lines
949 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
|
|
build_user=$(id -u)
|
|
build_group=$(id -g)
|
|
export build_user
|
|
export build_group
|
|
|
|
fast_mode=
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
-f | --fast ) fast_mode=1
|
|
;;
|
|
-h | --help ) echo "-f or --fast: build fast without cleaning or running tests"
|
|
exit 0
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
sudo id
|
|
|
|
MAKE=make
|
|
|
|
if [ "$(uname -s)" = "OpenBSD" ]; then
|
|
MAKE=gmake
|
|
fi
|
|
|
|
if [ $fast_mode = 1 ]; then
|
|
$MAKE -C ../ && \
|
|
$MAKE -C ../ install &&
|
|
sudo -E PATH="$PATH" ./build-image-qemu.sh
|
|
else
|
|
$MAKE -C ../ clean && \
|
|
$MAKE -C ../ && \
|
|
$MAKE -C ../ test && \
|
|
$MAKE -C ../ install &&
|
|
sudo -E PATH="$PATH" ./build-image-qemu.sh
|
|
fi
|