mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 22:00:18 +00:00
22 lines
286 B
Bash
Executable File
22 lines
286 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# find root
|
|
cd "$(dirname "$PWD/$0")" ; cd ..
|
|
|
|
# update
|
|
if [ -d .git ]; then
|
|
git pull
|
|
fi
|
|
|
|
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
|