2 # Common setup for linux-next scripts
5 # Just in case this gets included twice ...
6 [ "$_next_common_included" ] && return 0
7 _next_common_included=1
9 bin_dir=$(dirname "$0")
11 [ "$LOG_FILE" ] || LOG_FILE="../merge.log"
13 CTRL_FILE="../etc/control"
16 build_dir="/home/sfr/next/next"
19 gpg_key=89F91C0A41D5C07A
20 kup_gpg_key=015042F34957D06C
22 [ "$NEXT_BUILD_HOST" ] && {
23 build_host="$NEXT_BUILD_HOST"
24 [ "$build_host" = "none" ] && build_host=""
26 [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
27 [ "$NEXT_GCC_VERSION" ] && gcc_version="$NEXT_GCC_VERSION"
28 gcc_ppc_version=$gcc_version
29 [ "$NEXT_GCC_PPC_VERSION" ] && gcc_ppc_version="$NEXT_GCC_PPC_VERSION"
30 gcc_ppcle_version=$gcc_ppc_version
31 [ "$NEXT_GCC_PPCLE_VERSION" ] && gcc_ppcle_version="$NEXT_GCC_PPCLE_VERSION"
32 [ "$NEXT_J_FACTOR" ] && j_factor="$NEXT_J_FACTOR"
43 export NEXT_BUILD_HOST="${build_host:-none}"
44 export NEXT_BUILD_DIR="$build_dir"
45 export NEXT_GCC_VERSION="$gcc_version"
46 export NEXT_GCC_PPC_VERSION="$gcc_ppc_version"
47 export NEXT_GCC_PPCLE_VERSION="$gcc_ppcle_version"
48 export NEXT_J_FACTOR="$j_factor"
53 awk -F '\t' '/^[^#]/ && $3=="'"$1"'" { print $1; }' $CTRL_FILE