2011-09-10 08:19:06 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
|
|
|
|
# update
|
2014-05-08 07:11:33 +08:00
|
|
|
if [ -d .git ]; then
|
2011-09-10 08:19:06 +08:00
|
|
|
git pull
|
|
|
|
fi
|
|
|
|
|
2015-04-18 03:56:01 +08:00
|
|
|
ccache --help > /dev/null 2>&1
|
2011-09-10 08:19:06 +08:00
|
|
|
if [ $? = 0 ]; then
|
|
|
|
[ -z "${CC}" ] && CC=gcc
|
|
|
|
CC="ccache ${CC}"
|
|
|
|
export CC
|
|
|
|
fi
|
|
|
|
|
|
|
|
# build
|
|
|
|
./configure --prefix=/usr && \
|
|
|
|
make -j 4 && \
|
|
|
|
sudo make symstall
|