#!/bin/sh set -e trap cleanup_exit INT TERM EXIT cleanup_exit() { : } export LANG=C distro=$(basename ${PWD} | cut -f1 -d '-') arch=$(basename ${PWD} | cut -f2 -d '-') name=$(basename ${PWD} | cut -f3- -d '-') docker build --pull --tag=linaro/dev-${arch}-${name}-ubuntu:${distro} .