10-27-2015, 03:55 AM
I have FreeBSD 10.2 x64
Here's the build script:
Here's the build script:
Code:
#!/usr/bin/env bash
set -e
# Server
git submodule update --init
export CUBERITE_BUILD_SERIES_NAME="Jenkins clang x64 Release (master)"
export CUBERITE_BUILD_ID="$BUILD_DISPLAY_NAME"
export CUBERITE_BUILD_DATETIME="`date`"
CC=clang CXX=clang++ cmake . -DCROSSCOMPILE=1 -DCMAKE_BUILD_TYPE=RELEASE
make
echo "$JOB_NAME $BUILD_DISPLAY_NAME \n $BUILD_URL" > Server/buildinfo
mkdir Server/Licenses
cp Install/ThirdPartyLicenses/* Server/Licenses/
cp CONTRIBUTORS Server/
cp LICENSE Server/
tar -cvzf Cuberite.tar.gz Server/*
sha1sum Cuberite.tar.gz > Cuberite.tar.gz.sha1
# ProtoProxy
pushd Tools/ProtoProxy
cmake .
make
sha1sum ProtoProxy > ProtoProxy.sha1
popd
# API Docs
pushd Server
./Cuberite <<- EOS
load APIDump
api
stop
EOS
cd API
tar -cvzf ../LuaAPI.tar.gz *
sha1sum ../LuaAPI.tar.gz > ../LuaAPI.tar.gz.sha1
popd