-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·38 lines (35 loc) · 1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/env bash
set -eu
while (($# > 0)); do
case "$1" in
--clean)
export CLEAN_BUILD=1;;
--skip-extract)
export SKIP_EXTRACT=1;;
--skip-lfs)
export CHECK_LFS=0;;
--skip-patch)
export SKIP_PATCH=1;;
--skip-kernel-cfg)
export CHECK_KERNEL_CFG=0;;
--skip-tidy)
export WITH_TIDY=0
;;
--fast)
export SKIP_EXTRACT=1
export CHECK_LFS=0
export SKIP_PATCH=1
export CHECK_KERNEL_CFG=0
export WITH_TIDY=0
;;
--help|-h)
echo "Usage: $0 [--clean] [--skip-extract] [--skip-lfs] [--skip-patch] [--skip-kernel-cfg] [--skip-tidy]"
echo "--fast combines --skip-extract --skip-lfs --skip-patch --skip-kernel-cfg --skip-tidy"
exit 0;;
*)
echo "Invalid option: $@" >&2; exit 1;;
esac
shift
done
source "$(dirname "${BASH_SOURCE[0]}")/setup.sh"
source "$(dirname "${BASH_SOURCE[0]}")/buildAndChecksum.sh"