Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
74bf15cc
Commit
74bf15cc
authored
13 years ago
by
Russell Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Modify to check for includes and libraries separately. Re #3977.
parent
1a7fbaaf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/fetch_Third_Party.bat
+23
-11
23 additions, 11 deletions
Code/fetch_Third_Party.bat
with
23 additions
and
11 deletions
Code/fetch_Third_Party.bat
+
23
−
11
View file @
74bf15cc
...
@@ -21,30 +21,42 @@ If %ERRORLEVEL% == 0 (
...
@@ -21,30 +21,42 @@ If %ERRORLEVEL% == 0 (
del
CheckOS
.txt
del
CheckOS
.txt
del
StringCheck
.txt
del
StringCheck
.txt
:: First check if everything is already there - if so we just want to update
IF
EXIST
Third_Party
/include
GOTO
Update
:: Find out the url where mantid came from so we use the same location & protocol
:: Find out the url where mantid came from so we use the same location & protocol
FOR
/F
%%I
IN
(
'git.cmd config --get remote.origin.url'
)
DO
SET
url
=
%%I
FOR
/F
%%I
IN
(
'git.cmd config --get remote.origin.url'
)
DO
SET
url
=
%%I
echo
%url%
echo
Mantid
repository
URL
:
%url%
:: Check if includes are already there - if so, just update
IF
EXIST
Third_Party
/include
GOTO
UpdateInc
set
incs
=
%url
:mantid
.git
=
%
3
rdpartyincludes
.git
set
incs
=
%url
:mantid
.git
=
%
3
rdpartyincludes
.git
echo
%incs%
:: Otherwise we need to clone
echo
Cloning
Third_Party
includes
from
%incs%
call
git
.cmd
clone
%incs%
Third_Party
/include
:DoLibs
:: Check is libs are already there - if so, just update
IF
EXIST
Third_Party
/lib
/
%arch%
GOTO
UpdateLib
set
libs
=
%url
:mantid
.git
=
%
3
rdpartylibs
-
%arch%
.git
set
libs
=
%url
:mantid
.git
=
%
3
rdpartylibs
-
%arch%
.git
echo
%libs%
echo
%libs%
:: Otherwise we need to clone
:: Otherwise we need to clone
echo
Cloning
Third_Party
includes
and
libraries
...
echo
Cloning
Third_Party
libraries
from
%libs%
call
git
.cmd
clone
%incs%
Third_Party
/include
call
git
.cmd
clone
%libs%
Third_Party
/lib
/
%arch%
call
git
.cmd
clone
%libs%
Third_Party
/lib
/
%arch%
exit
0
exit
0
:: Just making sure what we have is up to date
:: Just making sure what we have is up to date
:Update
:Update
Inc
echo
Updating
Third_Party
includes
and
libraries
...
echo
Updating
Third_Party
includes
...
cd
Third_Party
/include
cd
Third_Party
/include
call
git
.cmd
pull
call
git
.cmd
pull
cd
../lib/
%arch%
:: Be sure to end up back where we started
cd
../..
GOTO
:DoLibs
:UpdateLib
echo
Updating
Third_Party
libraries
...
cd
Third_Party
/lib
/
%arch%
call
git
.cmd
pull
call
git
.cmd
pull
:: Be sure to end up back where we started
:: Be sure to end up back where we started
cd
../../..
cd
../../..
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment