Skip to content

Instantly share code, notes, and snippets.

@DrinkyBird
Created November 7, 2018 10:59
Show Gist options
  • Save DrinkyBird/84ef028689cca80a71368798117b0697 to your computer and use it in GitHub Desktop.
Save DrinkyBird/84ef028689cca80a71368798117b0697 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
export CC=/home/sean/bin/cc
export CXX=/home/sean/bin/c++
bdir=$PWD/.buildrelease
srcdir=$PWD/src
outdir=$PWD/out-release
./update_backports.sh
mkdir -p $bdir
cd $bdir
if [[ -f Makefile ]]; then
make clean
fi
cmake $srcdir -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=ON -DRELEASE_WITH_DEBUG_FILE=ON -DTSPG_BLACKLIST=ON
make -j`nproc`
mkdir -p $outdir
cp zandronum-server* $outdir
cp *.pk3 $outdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment