diff --git a/Code/fetch_Third_Party.bat b/Code/fetch_Third_Party.bat
index 2baf5a44..55a6cbf 100755
|
a
|
b
|
del CheckOS.txt |
| 22 | 22 | del StringCheck.txt |
| 23 | 23 | |
| 24 | 24 | :: Find out the url where mantid came from so we use the same location & protocol |
| 25 | | FOR /F %%I IN ('git.cmd config --get remote.origin.url') DO SET url=%%I |
| | 25 | FOR /F %%I IN ('git config --get remote.origin.url') DO SET url=%%I |
| 26 | 26 | echo Mantid repository URL: %url% |
| 27 | 27 | |
| 28 | 28 | :: Check if includes are already there - if so, just update |
| … |
… |
IF EXIST Third_Party/include GOTO UpdateInc |
| 31 | 31 | set incs=%url:mantid.git=%3rdpartyincludes.git |
| 32 | 32 | :: Otherwise we need to clone |
| 33 | 33 | echo Cloning Third_Party includes from %incs% |
| 34 | | call git.cmd clone %incs% Third_Party/include |
| | 34 | call git clone %incs% Third_Party/include |
| 35 | 35 | |
| 36 | 36 | :DoLibs |
| 37 | 37 | :: Check is libs are already there - if so, just update |
| … |
… |
echo %libs% |
| 42 | 42 | |
| 43 | 43 | :: Otherwise we need to clone |
| 44 | 44 | echo Cloning Third_Party libraries from %libs% |
| 45 | | call git.cmd clone %libs% Third_Party/lib/%arch% |
| | 45 | call git clone %libs% Third_Party/lib/%arch% |
| 46 | 46 | exit 0 |
| 47 | 47 | |
| 48 | 48 | :: Just making sure what we have is up to date |
| 49 | 49 | :UpdateInc |
| 50 | 50 | echo Updating Third_Party includes... |
| 51 | 51 | cd Third_Party/include |
| 52 | | call git.cmd pull |
| | 52 | call git pull |
| 53 | 53 | :: Be sure to end up back where we started |
| 54 | 54 | cd ../.. |
| 55 | 55 | GOTO :DoLibs |
| … |
… |
GOTO :DoLibs |
| 57 | 57 | :UpdateLib |
| 58 | 58 | echo Updating Third_Party libraries... |
| 59 | 59 | cd Third_Party/lib/%arch% |
| 60 | | call git.cmd pull |
| | 60 | call git pull |
| 61 | 61 | :: Be sure to end up back where we started |
| 62 | 62 | cd ../../.. |
| 63 | 63 | exit 0 |