]> git.ozlabs.org Git - next-scripts/blob - common.sh
cope with doing the merges and build on the same machine
[next-scripts] / common.sh
1 #
2 # Common setup for linux-next scripts
3 #
4
5 # Just in case this gets included twice ...
6 [ "$_next_common_included" ] && return 0
7 _next_common_included=1
8
9 bin_dir="$(dirname $0)"
10
11 LOG_FILE="../merge.log"
12 SHA1_FILE="../SHA1s"
13 CTRL_FILE="../etc/control"
14
15 build_host="ka2"
16 build_dir="/home/sfr/next/next"
17 gcc_version="4.9.0"
18 j_factor=48
19 ssh_key_file=~/.ssh/ra.kernel.org
20 gpg_key=41D5C07A
21
22 [ "$NEXT_BUILD_HOST" ] && {
23         build_host="$NEXT_BUILD_HOST"
24         [ "$build_host" = "none" ] && build_host=""
25 }
26 [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
27 [ "$NEXT_GCC_VERSION" ] && gcc_version="$NEXT_GCC_VERSION"
28 [ "$NEXT_J_FACTOR" ] && j_factor="$NEXT_J_FACTOR"
29
30 [ -n "$1" ] && {
31         build_host="$1"
32         shift
33 }
34 [ -n "$1" ] && {
35         build_dir="$1"
36         shift
37 }
38
39 export NEXT_BUILD_HOST="${build_host:-none}"
40 export NEXT_BUILD_DIR="$build_dir"
41 export NEXT_GCC_VERSION="$gcc_version"
42 export NEXT_J_FACTOR="$j_factor"
43
44 true