#!/bin/sh

make -C Build/mp_auCoder/SVMWeights SVMExport.mexmac
if [ ! -f Build/mp_auCoder/SVMWeights/SVMExport.mexmac ]; then
    echo "Build of SVMExport.mexmac failed."
    exit -1
fi

rm -rf SVMExport.tgz
tar -czf SVMExport.tgz reformWeights.m -C Documentation SVMExportHelp.txt -C ../Source SVMExport.mexglx -C ../Build/mp_auCoder/SVMWeights main.cpp makeSVMWeights.m SVMExport.mexmac
