2018-11-09 01:25:31 +01:00
|
|
|
#!/bin/bash
|
2019-05-15 20:30:00 +02:00
|
|
|
set -e
|
2018-11-09 01:25:31 +01:00
|
|
|
|
|
|
|
sudo id
|
|
|
|
|
2019-05-15 20:26:31 +02:00
|
|
|
if [ -z "$MAKEJOBS" ]; then
|
|
|
|
MAKEJOBS=$(nproc)
|
|
|
|
fi
|
|
|
|
|
|
|
|
make_cmd="make -j $MAKEJOBS"
|
2019-02-12 16:33:24 +01:00
|
|
|
|
2019-05-15 20:30:00 +02:00
|
|
|
build_targets=""
|
|
|
|
build_targets="$build_targets ../LibC"
|
|
|
|
build_targets="$build_targets ../LibM"
|
|
|
|
build_targets="$build_targets ../LibCore"
|
|
|
|
build_targets="$build_targets ../Servers/LookupServer"
|
|
|
|
build_targets="$build_targets ../Servers/WindowServer"
|
|
|
|
build_targets="$build_targets ../LibGUI"
|
|
|
|
build_targets="$build_targets ../Userland"
|
|
|
|
build_targets="$build_targets ../Applications/Terminal"
|
|
|
|
build_targets="$build_targets ../Applications/FontEditor"
|
|
|
|
build_targets="$build_targets ../Applications/Launcher"
|
|
|
|
build_targets="$build_targets ../Applications/FileManager"
|
|
|
|
build_targets="$build_targets ../Applications/ProcessManager"
|
|
|
|
build_targets="$build_targets ../Applications/TextEditor"
|
|
|
|
build_targets="$build_targets ../Applications/About"
|
|
|
|
build_targets="$build_targets ../Applications/IRCClient"
|
|
|
|
build_targets="$build_targets ../Applications/Taskbar"
|
|
|
|
build_targets="$build_targets ../Applications/Downloader"
|
|
|
|
build_targets="$build_targets ../DevTools/VisualBuilder"
|
|
|
|
build_targets="$build_targets ../Games/Minesweeper"
|
|
|
|
build_targets="$build_targets ../Games/Snake"
|
|
|
|
build_targets="$build_targets ../Shell"
|
|
|
|
build_targets="$build_targets ../Demos/HelloWorld"
|
|
|
|
build_targets="$build_targets ../Demos/RetroFetch"
|
2019-05-24 22:47:01 +02:00
|
|
|
build_targets="$build_targets ../Demos/WidgetGallery"
|
2019-05-17 20:40:38 +02:00
|
|
|
build_targets="$build_targets ." # the kernel
|
2019-05-15 20:30:00 +02:00
|
|
|
|
|
|
|
for targ in $build_targets; do
|
|
|
|
echo "Building $targ"
|
2019-05-28 11:53:16 +02:00
|
|
|
#(cd "$targ" && find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -exec clang-format -i {} \;)
|
2019-05-15 20:30:00 +02:00
|
|
|
$make_cmd -C "$targ" clean
|
|
|
|
$make_cmd -C "$targ"
|
|
|
|
|
|
|
|
if [ -f "$targ/install.sh" ]; then
|
|
|
|
echo "Installing $targ"
|
|
|
|
(cd "$targ" && ./install.sh)
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2019-05-17 20:40:38 +02:00
|
|
|
# has no need to build separately, but install headers.
|
|
|
|
(cd ../SharedGraphics && ./install.sh)
|
|
|
|
(cd ../AK && ./install.sh)
|
|
|
|
|
2018-11-09 01:25:31 +01:00
|
|
|
sudo ./sync.sh
|
|
|
|
|