Rework bootstrap to use new install targets
This commit is contained in:
parent
2273c93f11
commit
ad803a5d7a
1 changed files with 4 additions and 24 deletions
28
bootstrap.sh
28
bootstrap.sh
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue