LucidCube/start.sh
Rebekah Rowe d8b5b2e876
New Easy Build scripts for linux.
I want to go fast, these allow you to simply run the script and it goes.
2024-02-13 10:52:22 -05:00

23 lines
349 B
Bash
Executable File

#!/bin/sh
if [ -f CMakeLists.txt ]; then
mkdir -p build
cd build
fi
if ! [ -f CMakeCache.txt ]; then
cmake ..
fi
if ! [ -f Server/Cuberite ]; then
make -j$(nproc)
fi
if ! [ -d res ]; then
ln -s ../client-resources/ res
fi
cd Server
LD_PRELOAD=/usr/local/lib/libhydride.so ./Cuberite
#LD_PRELOAD=/usr/local/lib/libhydride.so gdb ./Cuberite