diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
commit | fd3e84941de463fa1a7ebab0a69515b4bf2614cd (patch) | |
tree | 3fa721a13d41d2c0451d663a59a220a38fd5e614 /fpga/usrp3/top/python/batch-build | |
parent | 3b66804e41891e358c790b453a7a59ec7462dba4 (diff) | |
download | uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.gz uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.bz2 uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.zip |
Removed copy of FPGA source files.
Diffstat (limited to 'fpga/usrp3/top/python/batch-build')
-rwxr-xr-x | fpga/usrp3/top/python/batch-build | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/fpga/usrp3/top/python/batch-build b/fpga/usrp3/top/python/batch-build deleted file mode 100755 index fcf9ac7f5..000000000 --- a/fpga/usrp3/top/python/batch-build +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -iterations=1 -directory="." -targets="" -name="" -outdir=${PWD} - -for arg in "$@"; do - if [[ $arg == "--help" ]]; then - echo "Usage: batch-build [options] targets" - echo "Options:" - echo " --runs=N [1] Build the specified targets N times" - echo " --dir=<dir> [.] Makefile directory" - echo " --name=<name> [<empty>] Name of this batch job. Used as a prefix for build output" - echo " --help Print the message and exit" - echo "" - exit 0 - elif [[ $arg =~ "--runs="([0-9]+) ]]; then - iterations=${BASH_REMATCH[1]} - elif [[ $arg =~ "--dir="(.+) ]]; then - directory=${BASH_REMATCH[1]} - elif [[ $arg =~ "--name="(.+) ]]; then - name=${BASH_REMATCH[1]}"_" - else - targets=$targets$arg" " - fi -done - -cd $directory >/dev/null 2>&1 -if [ $? -ne 0 ]; then - echo "ERROR: Could not cd to $directory" - exit -fi - -for i in $(seq 1 $iterations); do - make $targets - if [ $? -ne 0 ]; then - echo "ERROR: Build Failed!!! Stopping batch build." - exit - fi - cp -rf build ${outdir}/${name}batch-build_$(date +'%Y-%m-%d_%H-%M-%S') - make clean -done - |