Build legacy drivers and publish per-OS packages with web activation and DEB
This commit is contained in:
7
build.sh
7
build.sh
@@ -5,7 +5,12 @@ base=$PWD
|
||||
source_dir=${MARS_SOURCE_DIR:-}
|
||||
prefix=${PREFIX:-/usr/local}
|
||||
[[ $prefix = /usr/local ]] || { echo 'PREFIX must be /usr/local for native service' >&2; exit 2; }
|
||||
make all check native check-native check-supervisor
|
||||
for tool in cc make cmake git pkg-config; do
|
||||
command -v "$tool" >/dev/null || { echo "Missing build tool: $tool. See GUIDE.md." >&2; exit 1; }
|
||||
done
|
||||
pkg-config --exists json-c openssl || { echo 'Install libjson-c-dev and libssl-dev.' >&2; exit 1; }
|
||||
printf '#include <civetweb.h>\n' | cc -E -x c - >/dev/null || { echo 'Install libcivetweb-dev.' >&2; exit 1; }
|
||||
make all check native check-native check-supervisor check-gateway check-gateway-auto check-winclient
|
||||
mkdir -p upstream
|
||||
if [[ ! -d upstream/original ]]; then
|
||||
if [[ -n $source_dir ]]; then
|
||||
|
||||
Reference in New Issue
Block a user