mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-17 04:50:02 +02:00
17 lines
367 B
Bash
Executable file
17 lines
367 B
Bash
Executable file
#!/bin/bash
|
|
|
|
BINARY=build/eosio-api-healthcheck
|
|
|
|
if [ ! -f "${BINARY}" ]; then
|
|
echo "Could not find '${BINARY}', You need to compile first."
|
|
exit 1
|
|
fi
|
|
|
|
# Bit of a hack to figure out if we need to package for FreeBSD or not.
|
|
if [ -n "$(file $BINARY | grep 'FreeBSD')" ]; then
|
|
MAKE_TARGET="package_freebsd"
|
|
else
|
|
MAKE_TARGET="package_deb"
|
|
fi
|
|
|
|
make -B ${MAKE_TARGET}
|