Rework bootstrap to use new install targets

This commit is contained in:
mdiluzio 2014-12-30 18:53:15 +00:00
parent 2273c93f11
commit ad803a5d7a

View file

@ -16,15 +16,14 @@ if [[ $? != 0 ]]; then
exit
fi
# Run make
echo "TTRTS: Running make"
make
echo "Performing install"
make install
if [[ $? != 0 ]]; then
echo "TTRTS: make failed, exiting Bootstrap"
echo "TTRTS: Install failed, check output"
exit
fi
# Run tests
# Run final test to make sure
echo "TTRTS: Running tests"
./source/test/ttrts-test
if [[ $? != 0 ]]; then
@ -32,23 +31,4 @@ if [[ $? != 0 ]]; then
exit
fi
# Generate maps
echo "TTRTS: Generating maps"
cd ..
./scripts/gen_maps.sh "$PWD/build/source/gen/ttrts-gen"
if [[ $? != 0 ]]; then
echo "TTRTS: Failed to generate maps, exiting Bootstrap"
exit
fi
# Move binaries
echo "TTRTS: Moving binaries"
if [ ! -e build/source/client/ttrts ]; then
echo "TTRTS: No TTRTS Binary found, something has gone wrong"
exit
fi
cp build/source/client/ttrts .
chmod a+x ttrts
echo "TTRTS: Bootstrap complete"