dockcross/imagefiles/build-and-install-flatcc.sh

26 lines
438 B
Bash
Raw Normal View History

2022-02-28 19:54:59 +01:00
#!/usr/bin/env bash
set -ex
if ! command -v git &> /dev/null; then
echo >&2 'error: "git" not found!'
exit 1
fi
if [[ "${FLATCC_VERSION}" == "" ]]; then
echo >&2 'error: FLATCC_VERSION env. variable must be set to a non-empty value'
exit 1
fi
cd /usr/src
2022-03-28 21:32:05 +02:00
git clone https://github.com/dvidelabs/flatcc.git
2022-02-28 19:54:59 +01:00
cd flatcc
2022-03-28 21:32:05 +02:00
git reset --hard $FLATCC_COMMIT
2022-02-28 19:54:59 +01:00
cmake -DFLATCC_INSTALL=on && make install > /dev/null
./scripts/cleanall.sh