radare2/sys/update.sh

22 lines
286 B
Bash
Raw Normal View History

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