pserv/install-dependencies.sh
Godmar Back 06153db5c1 handout Fall'22
- added Jansson examples to jwt_demo_hs256
- added cookie property tests
2022-11-17 01:10:53 -05:00

27 lines
667 B
Bash
Executable File

#!/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;
git checkout v1.14.0;
autoreconf -fi;
env PKG_CONFIG_PATH=../deps/lib/pkgconfig:${PKG_CONFIG_PATH} ./configure --prefix=${BASE}/deps;
make -j 40 install
)