#! /bin/bash

source scripts/functions.sh
pushd scripts
./go.sh $* || exit -1
popd

for x in $*;
do
    if [[ "$x" =~ "clean" ]] 
    then
        rm -rf bin
        print_red_msg " clean done..." 
        exit 0
    fi
done


# copy *.mbn
mkdir -p ../output/TA/
cp -ivf bin/* ../output/TA/
if [ $? == 0 ];then
print_green_msg "++++ copy done...++++";
else
print_red_msg "++++ copy failure +++";
exit -2
fi
