1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Update build scripts

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-27 23:43:21 +02:00
parent 547181ec48
commit f4c2bf9f34
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -103,7 +103,7 @@ rm -rf ${BASE_DIR}/${TOX_CORE_DIR}
# afterwards install libsodium to INSTALL_DIR # afterwards install libsodium to INSTALL_DIR
# skip the installation if TOX_ONLY is true # skip the installation if TOX_ONLY is true
if [[ $TOX_ONLY = "false" ]]; then if [[ $TOX_ONLY = "false" ]]; then
git clone git://github.com/jedisct1/libsodium.git ${BASE_DIR}/${SODIUM_DIR} git clone git://github.com/jedisct1/libsodium.git ${BASE_DIR}/${SODIUM_DIR} --depth 1
pushd ${BASE_DIR}/${SODIUM_DIR} pushd ${BASE_DIR}/${SODIUM_DIR}
git checkout tags/$SODIUM_VER git checkout tags/$SODIUM_VER
./autogen.sh ./autogen.sh
@ -116,7 +116,7 @@ if [[ $TOX_ONLY = "false" ]]; then
make -j2 check make -j2 check
if [[ $GLOBAL = "false" ]]; then if [[ $GLOBAL = "false" || $EUID -e 0 ]]; then
make install make install
else else
sudo make install sudo make install
@ -128,7 +128,7 @@ fi
# clone current master of libtoxcore # clone current master of libtoxcore
# make sure to compile with libsodium we just installed to INSTALL_DIR # make sure to compile with libsodium we just installed to INSTALL_DIR
# afterwards install libtoxcore to INSTALL_DIR # afterwards install libtoxcore to INSTALL_DIR
git clone https://github.com/irungentoo/toxcore.git ${BASE_DIR}/${TOX_CORE_DIR} git clone https://github.com/irungentoo/toxcore.git ${BASE_DIR}/${TOX_CORE_DIR} --depth 1
pushd ${BASE_DIR}/${TOX_CORE_DIR} pushd ${BASE_DIR}/${TOX_CORE_DIR}
./autogen.sh ./autogen.sh
if [[ $GLOBAL = "false" ]]; then if [[ $GLOBAL = "false" ]]; then
@ -139,7 +139,7 @@ fi
make -j2 make -j2
if [[ $GLOBAL = "false" ]]; then if [[ $GLOBAL = "false" || $EUID -e 0 ]]; then
make install make install
else else
sudo make install sudo make install