Skip to content

Commit d3e9628

Browse files
committed
move build scripts to src/
1 parent 65ea68f commit d3e9628

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build.sh renamed to src/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -e # Stop on error
3-
cd "$(dirname "$0")/src"
3+
cd "$(dirname "$0")"
44

55
if pwd | grep -q " "; then
66
echo "You have cloned the source directory into a path with spaces"

link.sh renamed to src/link.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ if [[ ! -d "$ORIGINAL_INSTALL_DIR" ]]; then
1717
fi
1818

1919
link_dir() {
20-
ln -sn "${ORIGINAL_INSTALL_DIR}/$1" "./game/$1"
20+
ln -sn "${ORIGINAL_INSTALL_DIR}/$1" "../game/$1"
2121
}
2222

2323
link_glob() {
24-
ln -sn "${ORIGINAL_INSTALL_DIR}/$1/"*"$2" "./game/$1/"
24+
ln -sn "${ORIGINAL_INSTALL_DIR}/$1/"*"$2" "../game/$1/"
2525
}
2626

2727
copy () {
28-
cp -rfT --remove-destination "${ORIGINAL_INSTALL_DIR}/$1" "./game/$1"
28+
cp -rfT --remove-destination "${ORIGINAL_INSTALL_DIR}/$1" "../game/$1"
2929
}
3030

3131
git submodule update --init
3232

33-
cp -rfT game_clean/copy/ ./game/
33+
cp -rfT game_clean/copy/ ../game/
3434

3535
link_dir hl2
3636
link_dir platform
3737
link_dir tf/maps
38-
mkdir ./game/tf/materials
38+
mkdir ../game/tf/materials
3939
link_dir tf/materials/models
4040
link_dir tf/materials/vgui
4141
link_dir tf/media

run.sh renamed to src/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -e
3-
cd "$(dirname "$0")"/game
3+
cd "$(dirname "$0")"/../game
44

55
MANGOHUD="$(command -v mangohud || true)"
66
ARGS="-steam -game tf -insecure -novid -nojoy -nosteamcontroller -nohltv -particles 1 -noborder -particle_fallback 2 -dev -nobreakpad -console"

0 commit comments

Comments
 (0)