Skip to content

Commit

Permalink
scripts: add missing dependency (libtool for libjwt) (#83)
Browse files Browse the repository at this point in the history
* Add missing dependency (libtool for libjwt)
* Build libraries in unique temporary directory
  • Loading branch information
Lycopersicum authored and GiedriusM committed Oct 8, 2018
1 parent d011ccd commit f532e21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#

set -e
TMP_BUILD_DIR="$(mktemp -d)"

update_repositories () {
if which apt-get; then
Expand All @@ -47,7 +48,7 @@ update_repositories () {

install_build_tools () {
if which apt-get; then
sudo apt-get install -yqq git cmake build-essential automake
sudo apt-get install -yqq git cmake build-essential automake libtool
elif which rpm; then
echo "RPM is not supported yet!"
return 1
Expand Down Expand Up @@ -166,9 +167,12 @@ install_build_tools
echo "==> Installing dependencies..."
install_dependencies

cd "$(dirname "$0")/.."
cd "${TMP_BUILD_DIR}"

echo "==> Installing libjwt..."
install_libjwt

echo "==> Installing ulfius..."
install_ulfius_orcania_yder

rm -r "${TMP_BUILD_DIR}"

0 comments on commit f532e21

Please sign in to comment.