Skip to content

Commit

Permalink
adding go.sh to run the other scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cellularmitosis committed Apr 30, 2016
1 parent fc787a9 commit 11efcc9
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions arm/go-swift-2.2-RELEASE.sh
1 change: 1 addition & 0 deletions arm/go-swift-2.2.1-RELEASE.sh
1 change: 1 addition & 0 deletions arm/go-swift-2.2.1-SNAPSHOT-2016-04-12-a.sh
1 change: 1 addition & 0 deletions arm/go-swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.sh
32 changes: 32 additions & 0 deletions arm/go.sh
@@ -0,0 +1,32 @@
#!/bin/bash

set -eu -o pipefail
set -x

SELF_NAME="$( basename "${BASH_SOURCE[0]}" )"
SELF_DIR="$( dirname $( readlink -e "${BASH_SOURCE[0]}" ) )"
SELF_VERSION=$( echo "${SELF_NAME}" | sed 's/go\(.*\)\.sh/\1/' )

SHAS="${SELF_DIR}/shas${SELF_VERSION}.bash"
source "${SHAS}"

source "${SELF_DIR}/vars.bash"

export SWIFT_SOURCE_ROOT="$( pwd )/swift_src"
export SWIFT_BUILD_ROOT="$( pwd )/swift_build"

mkdir -p "${SWIFT_SOURCE_ROOT}"
mkdir -p "${SWIFT_BUILD_ROOT}"

function onexit
{
echo "Results are in ${SWIFT_BUILD_ROOT}"
}

trap onexit EXIT

cd "${SWIFT_BUILD_ROOT}"
"${SELF_DIR}/fetch${SELF_VERSION}.sh" 2>&1 | tee -a log.txt
"${SELF_DIR}/patch${SELF_VERSION}.sh" 2>&1 | tee -a log.txt
"${SELF_DIR}/build${SELF_VERSION}.sh" 2>&1 | tee -a log.txt

1 change: 1 addition & 0 deletions arm/patch-swift-2.2-RELEASE.sh
1 change: 1 addition & 0 deletions arm/patch-swift-2.2.1-SNAPSHOT-2016-04-12-a.sh
1 change: 1 addition & 0 deletions arm/patch-swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.sh

0 comments on commit 11efcc9

Please sign in to comment.