mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-14 06:52:36 +00:00
9 lines
280 B
Bash
9 lines
280 B
Bash
|
#!/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
|