Skip to content

Commit af18e85

Browse files
committedDec 21, 2018
Fix paths in tsc build and run scripts.
1 parent 675eb47 commit af18e85

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed
 

‎build-tsc.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
source settings.sh
4-
53
# Get latest git submodules
64
git submodule init
75
git submodule update
@@ -14,15 +12,17 @@ rm -rf build
1412
mkdir build
1513
cd build
1614

17-
# Delete old game directory at %HOME/tsc
18-
rm -rf ~/tsc
15+
# Delete old game directory at that is at repos/Secretchronicles/TSC/tsc/tsc
16+
rm -rf ../tsc
1917

2018
# Build TSC
21-
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TSCGAMEDIR ..
19+
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../tsc ..
2220
make
2321

2422
# Install TSC to $HOME/tsc
2523
make install
2624

27-
# Changing to game directory
28-
cd $TSCGAMEDIR
25+
# Changing back to TSC repo directory
26+
cd ../..
27+
28+
echo "You can now run TSC with ./run-tsc.sh"

‎run-tsc.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22

3-
source settings.sh
4-
53
# Changing to game directory
6-
cd $TSCGAMEDIR
4+
cd tsc/tsc
75

86
# Start Game
97
./bin/tsc
8+
9+
# Come back to original directory
10+
cd ../..

‎settings.sh

-3
This file was deleted.

0 commit comments

Comments
 (0)