#!/bin/bash set -e source "${BUILD_SCRIPT_ROOT}"/helpers setup-repo-vars #Translate # https://android-build.linaro.org/jenkins/job/doanac_build-script-generation/6/ # into # http://snapshots.linaro.org/android/~doanac/build-script-generation/6/ SNAPSHOT_URL=${BUILD_URL/http*jenkins\/job\//http://snapshots.linaro.org/android/~} # change the dash in doanac_build... to doanac/build... SNAPSHOT_URL=${SNAPSHOT_URL/_/\/} header() { cat < The directory to download code and build from" echo " Default: \${DIR}" exit 1 } while getopts "d:ht" optn; do case \$optn in d ) DIR=\$OPTARG;; t ) EXACT=0;; h ) usage; exit 1;; esac done EOF } sync_commands() { GITINFO=`PYTHONPATH=../.repo/repo ${BUILD_SCRIPT_ROOT}/repo_project_info.py -d ../` GITURL=`echo $GITINFO | cut -d\| -f1` GITREV=`echo $GITINFO | cut -d\| -f2` cat < linaro_kernel_config EOF } build_commands() { cat < linaro_kernel_build_cmds.sh chmod +x linaro_kernel_build_cmds.sh