solidity/scripts/install_obsolete_jsoncpp_1_7_4.sh

19 lines
469 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu
TEMPDIR=$(mktemp -d)
(
2020-12-11 17:19:53 +00:00
cd "$TEMPDIR"
jsoncpp_version="1.7.4"
jsoncpp_package="jsoncpp-${jsoncpp_version}.tar.gz"
wget -O "$jsoncpp_package" https://github.com/open-source-parsers/jsoncpp/archive/${jsoncpp_version}.tar.gz
tar xvzf "$jsoncpp_package"
cd "jsoncpp-${jsoncpp_version}"
mkdir -p build
cd build
cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
make
make install
)
2020-12-11 17:19:53 +00:00
rm -rf "$TEMPDIR"