mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-29 08:01:04 +00:00
4a3d7bc1db
- Added r_cons_get_column () api * Fix ';' in visual (0 prefix) * Update pkg-config files * Fix sys/vala.sh - Use ccache if possible * Add r_magic.vapi
44 lines
716 B
Bash
Executable File
44 lines
716 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# find root
|
|
cd `dirname $PWD/$0`
|
|
|
|
mkdir -p _work
|
|
cd _work
|
|
|
|
ccache --help 2>&1 > /dev/null
|
|
if [ $? = 0 ]; then
|
|
[ -z "${CC}" ] && CC=gcc
|
|
CC="ccache ${CC}"
|
|
export CC
|
|
fi
|
|
|
|
valac --help 2>&1 >/dev/null
|
|
if [ ! $? = 0 ]; then
|
|
# must install from tarball
|
|
VV=0.13.4
|
|
SV=$(echo ${VV}|cut -d . -f 1,2)
|
|
if [ ! -d vala-${VV} ]; then
|
|
wget http://download.gnome.org/sources/vala/${SV}/vala-${VV}.tar.bz2
|
|
tar xjvf vala-${VV}.tar.bz2
|
|
fi
|
|
cd vala-${VV}
|
|
./configure --prefix=/usr && \
|
|
make && \
|
|
sudo make install
|
|
cd ..
|
|
fi
|
|
|
|
if [ -d vala ]; then
|
|
cd vala
|
|
#sudo make uninstall
|
|
git pull
|
|
else
|
|
git clone git://git.gnome.org/vala
|
|
cd vala
|
|
fi
|
|
sh autogen.sh --prefix=/usr && \
|
|
make -j 4 && \
|
|
sudo make install
|
|
cd ..
|