Re-organise source directory and targets
ttrts -> client game -> ttrts
This commit is contained in:
parent
415361ac9c
commit
d9b9f3d7dd
18 changed files with 58 additions and 47 deletions
11
bootstrap.sh
11
bootstrap.sh
|
@ -1,11 +1,12 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Double check
|
||||
# Double check for cmakelist
|
||||
if [ ! -e "source/CMakeLists.txt" ]; then
|
||||
echo "TTRTS: No source cmakelist found"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Run cmake
|
||||
echo "TTRTS: Running cmake"
|
||||
test ! -e build && mkdir build
|
||||
cd build/
|
||||
|
@ -15,6 +16,7 @@ if [[ $? != 0 ]]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
# Run make
|
||||
echo "TTRTS: Running make"
|
||||
make
|
||||
if [[ $? != 0 ]]; then
|
||||
|
@ -22,6 +24,7 @@ if [[ $? != 0 ]]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
# Run tests
|
||||
echo "TTRTS: Running tests"
|
||||
./test/ttrts-test
|
||||
if [[ $? != 0 ]]; then
|
||||
|
@ -29,6 +32,7 @@ if [[ $? != 0 ]]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
# Generate maps
|
||||
echo "TTRTS: Generating maps"
|
||||
./../scripts/gen_maps.sh "$PWD/gen/ttrts-gen"
|
||||
if [[ $? != 0 ]]; then
|
||||
|
@ -38,14 +42,15 @@ fi
|
|||
# Copy these maps into parent directory
|
||||
cp -rf maps ..
|
||||
|
||||
# Move binaries
|
||||
echo "TTRTS: Moving binaries"
|
||||
cd ..
|
||||
if [ ! -e build/ttrts/ttrts ]; then
|
||||
if [ ! -e build/client/ttrts ]; then
|
||||
echo "TTRTS: No TTRTS Binary found, something has gone wrong"
|
||||
exit
|
||||
fi
|
||||
|
||||
cp build/ttrts/ttrts .
|
||||
cp build/client/ttrts .
|
||||
chmod a+x ttrts
|
||||
|
||||
echo "TTRTS: Bootstrap complete"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue