mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 23:50:40 +00:00
2415d86fd6
* Some fixes in r_magic api to make r_lang/perl compile
24 lines
315 B
Bash
Executable File
24 lines
315 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# find root
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
# update
|
|
if [ -d .hg ]; then
|
|
hg pull -u
|
|
elif [ -d .git ]; then
|
|
git pull
|
|
fi
|
|
|
|
ccache --help 2>&1 > /dev/null
|
|
if [ $? = 0 ]; then
|
|
[ -z "${CC}" ] && CC=gcc
|
|
CC="ccache ${CC}"
|
|
export CC
|
|
fi
|
|
|
|
# build
|
|
./configure --prefix=/usr && \
|
|
make -j 4 && \
|
|
sudo make symstall
|