aboutsummaryrefslogtreecommitdiff
path: root/trusty-armhf-tcwg/build.sh
blob: 386ad26eaca7e5ce589c113cb7189903871a860e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

trap cleanup_exit INT TERM EXIT

cleanup_exit()
{
  rm -f *.list *.key
  rm -rf tcwg-buildslave
}

export LANG=C

DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')

cp -a ../linaro-*.list ../linaro-*.key .
sed -e "s|@DISTRIBUTION@|${DISTRIBUTION}|" -i *.list

rsync -a ../tcwg-buildslave/ ./tcwg-buildslave/

docker build --tag=linaro/$(basename ${PWD}) .