(cd src/$1; ../../scripts/tcheadgen.sh tct-$1-core.h)
if [ $? -ne 0 ]; then echo "Aborting..."; exit 1; fi
cp packaging/core-$1-tests.spec ../packaging
+ cp .gitignore-without-autogenerated-files .gitignore
gbs build -A armv7l --spec core-$1-tests.spec --include-all --keep-packs | \
tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \
-e 's/warning:/\x1b[93m&\x1b[0m/'
rm ../packaging/core-$1-tests.spec
+ cp .gitignore-with-autogenerated-files .gitignore
else
echo "Build requires a module name"
exit 1