mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-02 05:46:20 +00:00
This reverts commit 3d342f72a7.
This is causing trouble for macOS users. Also it's painfully slow
compared to using the sudo method. This should definitely not be
the default since it punishes people who have genext2fs installed.
38 lines
851 B
Bash
Executable File
38 lines
851 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|
cd "$script_path"
|
|
|
|
fast_mode=
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
-f | --fast ) fast_mode=1
|
|
;;
|
|
-h | --help ) printf -- "-f or --fast: build fast without cleaning or running tests\n"
|
|
exit 0
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
sudo id
|
|
|
|
MAKE="make"
|
|
|
|
if [ "$(uname -s)" = "OpenBSD" ] || [ "$(uname -s)" = "FreeBSD" ]; 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
|