mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
469 B
Bash
Executable File
19 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
TEMPDIR=$(mktemp -d)
|
|
(
|
|
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
|
|
)
|
|
rm -rf "$TEMPDIR"
|