From 3547f93ca91d4f7b96228b8f78742dcc068fdac3 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 3 Jul 2014 14:38:52 +0200 Subject: [PATCH] added bootstrap script for linux/macx --- bootstrap.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 000000000..bbb6bd314 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# directory where the script is located +SCRIPT_NAME=$(readlink -f $0) +SCRIPT_DIR=`dirname $SCRIPT_NAME` + +# create libs dir if necessary +mkdir -p ${SCRIPT_DIR}/libs + +# clone current master of libtoxcore +git clone https://github.com/irungentoo/toxcore.git ${SCRIPT_DIR}/libs/libtoxcore-latest + +# compile and install libtoxcore +pushd ${SCRIPT_DIR}/libs/libtoxcore-latest +./autogen.sh +./configure --prefix=${SCRIPT_DIR}/libs/ +make -j2 +make install +popd + +# remove clone dir +rm -rf ${SCRIPT_DIR}/libs/libtoxcore-latest + +