mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
Build: Add fast build mode that does not clean everything or run tests
Passing the "-f" or "--fast" option to the ./makeall.sh script will build everything without cleaning first, and then will skip tests.
This commit is contained in:
parent
ff16298b44
commit
21517f693d
1 changed files with 22 additions and 4 deletions
|
@ -10,6 +10,18 @@ build_group=$(id -g)
|
||||||
export build_user
|
export build_user
|
||||||
export build_group
|
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
|
sudo id
|
||||||
|
|
||||||
MAKE=make
|
MAKE=make
|
||||||
|
@ -18,8 +30,14 @@ if [ "$(uname -s)" = "OpenBSD" ]; then
|
||||||
MAKE=gmake
|
MAKE=gmake
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$MAKE -C ../ clean && \
|
if [ $fast_mode = 1 ]; then
|
||||||
$MAKE -C ../ && \
|
$MAKE -C ../ && \
|
||||||
$MAKE -C ../ test && \
|
$MAKE -C ../ install &&
|
||||||
$MAKE -C ../ install &&
|
sudo -E PATH="$PATH" ./build-image-qemu.sh
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue