lcpu: make build_module take in the path to the gameserver

This commit is contained in:
Lily Tsuru 2023-07-29 17:02:03 -04:00
parent 7ae6acfc3b
commit 5f7f36296f
2 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@ Preliminary installation steps (for Linux):
```
garrysmod/addons$ git clone --recursive https://git.crustywindo.ws/modeco80/gmod-lcpu.git lcpu
garrysmod/addons$ cd lcpu
garrysmod/addons/lcpu$ ./build_module.sh
garrysmod/addons/lcpu$ ./build_module.sh [gameserver path]
# Tada!
```

View File

@ -3,10 +3,11 @@
# Build the LCPU native module for both linux32 and linux64
# and install it into the proper directory gmod wants native modules to be.
set -x
# where your game server is
GS_PATH="/home/lily/gs/gmod"
[[ "$1" == "" ]] && GS_PATH="/home/lily/gs/gmod"
[[ ! "$1" == "" ]] && GS_PATH="$1"
echo "building for $GS_PATH"
# make the module build directory
[[ ! -d "module_build" ]] && {