sys: change vala and valabind script to use PREFIX variable in CONFIG

This commit is contained in:
Riccardo Schirone 2014-11-19 13:44:13 -08:00 committed by pancake
parent db6247ac5a
commit 2a9c37dd25
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
. ./sys/CONFIG
[ -z "${PREFIX}" ] && PREFIX=/usr
# find root
cd `dirname $PWD/$0`
@ -37,7 +40,7 @@ else
git clone git://git.gnome.org/vala
cd vala
fi
sh autogen.sh --prefix=/usr && \
sh autogen.sh --prefix="${PREFIX}" && \
make -j 4 && \
sudo make install
cd ..

View File

@ -1,5 +1,8 @@
#!/bin/sh
. ./sys/CONFIG
[ -z "${PREFIX}" ] && PREFIX=/usr
# find root
cd `dirname $PWD/$0`
@ -15,4 +18,4 @@ fi
make clean
make
sudo make install
sudo make install PREFIX=${PREFIX}