]> git.ozlabs.org Git - next-scripts/blob - common.sh
make some stuff common
[next-scripts] / common.sh
1 #
2 # Common setup for linux-next scripts
3 #
4 bin_dir="$(dirname $0)"
5
6 LOG_FILE="../merge.log"
7 SHA1_FILE="../SHA1s"
8
9 build_host="ka2"
10 build_dir="/scratch/sfr/next"
11
12 [ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST"
13 [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
14
15 [ -n "$1" ] && {
16         build_host="$1"
17         shift
18 }
19 [ -n "$1" ] && {
20         build_dir="$1"
21         shift
22 }
23
24 export NEXT_BUILD_HOST="$build_host"
25 export NEXT_BUILD_DIR="$build_dir"
26
27 true