lnav/release/vagrant-static/build.sh

44 lines
945 B
Bash
Raw Normal View History

#! /usr/bin/env bash
FAKE_ROOT=/home/vagrant/fake.root
2014-11-04 16:51:45 +00:00
mkdir -p ~/github
cd ~/github
if ! test -d lnav; then
git clone git://github.com/tstack/lnav.git
fi
cd ~/github/lnav
git pull
saved_PATH=${PATH}
2015-04-17 07:48:46 +00:00
export PATH=${FAKE_ROOT}/bin:${PATH}
saved_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FAKE_ROOT}/lib
./autogen.sh
export PATH=${saved_PATH}
2015-04-17 07:48:46 +00:00
export LD_LIBRARY_PATH=${saved_LD_LIBRARY_PATH}
rm -rf ~/github/lbuild
mkdir -p ~/github/lbuild
cd ~/github/lbuild
OS=$(uname -s)
if test x"${OS}" != x"FreeBSD"; then
../lnav/configure \
LDFLAGS="-L${FAKE_ROOT}/lib" \
CC="gcc44" \
CXX="g++44" \
2015-10-15 02:52:22 +00:00
CPPFLAGS="-I${FAKE_ROOT}/include" \
PATH="${FAKE_ROOT}/bin:${PATH}"
else
../lnav/configure \
LDFLAGS="-L${FAKE_ROOT}/lib" \
2015-10-15 02:52:22 +00:00
CPPFLAGS="-I${FAKE_ROOT}/include" \
PATH="${FAKE_ROOT}/bin:${PATH}"
fi
make -j2 && strip -o /vagrant/lnav src/lnav