ctf-tools/crosstool/build-sample.sh
2015-05-07 11:20:55 -07:00

8 lines
280 B
Bash
Executable file

#!/bin/bash -e
sample=$1
[ -e ../x-tools/$sample ] && echo "Already built: $sample" && exit
HOME=$(dirname $PWD) CT_PREFIX=$(dirname $PWD)/toolchains ./ct-ng $sample
yes '' | HOME=$(dirname $PWD) CT_PREFIX=$(dirname $PWD)/toolchains ./ct-ng build.$(nproc)
rm -rf .build/$sample