blob: cccb8af25100a5b006b1d95369cfa6e1c1005904 [file] [log] [blame]
#!/bin/bash -ex
# latest version of this file can be found at
# https://android.googlesource.com/platform/external/lldb-utils
#
# Download & build swig on the local machine
# works on Linux, OSX, and Windows (Cygwin)
# leaves output in /tmp/prebuilts/install/
# cmake must be installed on Windows
PROJ=libedit
VER=20150325-3.1
source $(dirname "$0")/build-common.sh build-common.sh
BASE=$PROJ-$VER
TGZ=$BASE.tar.gz
curl -L http://thrysoee.dk/editline/$TGZ -o $TGZ
tar xzf $TGZ || cat $TGZ # if this fails, we're probably getting an http error
cd $BASE
mkdir $RD/build
cd $RD/build
$RD/$BASE/configure --prefix=$INSTALL
make -j$CORES
make install
commit_and_push