pserv/install-dependencies.sh
Godmar Back 7cbe3af927 updates for summer 2020
this update adds the unit tests as part of the student distribution
2020-08-03 23:33:16 -04:00

26 lines
641 B
Bash

#!/bin/bash
#
# Run this script to install the required Jansson and JWT packages.
#
BASE=`pwd`
#
# Running this script multiple times will wipe the existing build
# and reclone both repositories
/bin/rm -rf ${BASE}/deps jansson libjwt
#
test -d ${BASE}/deps || mkdir ${BASE}/deps
git clone https://github.com/akheron/jansson.git
(cd jansson;
autoreconf -fi;
./configure --prefix=${BASE}/deps;
make -j 40 install
)
git clone https://git@github.com/benmcollins/libjwt.git
(cd libjwt;
autoreconf -fi;
env PKG_CONFIG_PATH=../deps/lib/pkgconfig:${PKG_CONFIG_PATH} ./configure --prefix=${BASE}/deps;
make -j 40 install
)