aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install_obsolete_jsoncpp_1_7_4.sh
blob: 0ae7b34cf17fe5a8d0d7c6dda8e76a153dd39f42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env sh
set -e

TEMPDIR=$(mktemp -d)
(
    cd $TEMPDIR
    wget https://github.com/open-source-parsers/jsoncpp/archive/1.7.4.tar.gz
    tar xvzf "1.7.4.tar.gz"
    cd "jsoncpp-1.7.4"
    mkdir -p build
    cd build
    cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
    make
    make install
)
rm -rf $TEMPDIR