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

Merge pull request #64 from retuxx/bootstrap

Make script more failsafe for reusage
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-07-03 20:00:47 +02:00
commit 9eca1784f7
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
@mkdir %~dp0libs
%~dp0tools\wget --no-check-certificate http://jenkins.libtoxcore.so/job/libtoxcore-win32-i686/lastSuccessfulBuild/artifact/libtoxcore-win32-i686.zip -O %~dp0libs\libtoxcore-latest.zip
%~dp0tools\unzip %~dp0libs\libtoxcore-latest.zip -d %~dp0libs\
%~dp0tools\unzip -o %~dp0libs\libtoxcore-latest.zip -d %~dp0libs\
@del %~dp0libs\libtoxcore-latest.zip

View File

@ -7,6 +7,11 @@ SCRIPT_DIR=`dirname $SCRIPT_NAME`
# create libs dir if necessary
mkdir -p ${SCRIPT_DIR}/libs
# maybe an earlier run of this script failed
# thus we should remove the libtoxcore-latest dir
# if exists, otherwise cloning the git repo may fail
rm -rf ${SCRIPT_DIR}/libs/libtoxcore-latest
# clone current master of libtoxcore
git clone https://github.com/irungentoo/toxcore.git ${SCRIPT_DIR}/libs/libtoxcore-latest