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
a07786a2
Commit
a07786a2
authored
13 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Add a script to pull in Third_Party on the Mac. Refs #3977
parent
b486439c
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.sh
+46
-0
46 additions, 0 deletions
Code/fetch_Third_Party.sh
with
46 additions
and
0 deletions
Code/fetch_Third_Party.sh
0 → 100755
+
46
−
0
View file @
a07786a2
#! /bin/bash
# This script deals with getting hold of the required third party includes and libraries
# It will either clone or pull 3rdpartyincludes & 3rdpartylibs-mac and put them in the right place for CMake
gitcmd
=
`
which git
`
arch
=
mac
if
[
-z
"
${
gitcmd
}
"
]
;
then
echo
'Unable to find git, check that it is installed and on the PATH'
exit
1
fi
function
update
{
# Just making sure what we have is up to date
echo
Updating Third_Party includes and libraries...
cd
Third_Party/include
${
gitcmd
}
pull
cd
../lib/
${
arch
}
${
gitcmd
}
pull
# Be sure to end up back where we started
cd
../../..
exit
0
}
function
clone
{
echo
Cloning Third_Party includes and libraries...
# Find out the url where mantid came from so we use the same location & protocol
url
=
`
git config
--get
remote.origin.url |
sed
-e
's@/mantid.git@@'
`
echo
"mantidproject URL set to
${
url
}
"
incs
=
${
url
}
/3rdpartyincludes.git
echo
"URL for includes set to
${
incs
}
"
libs
=
${
url
}
/3rdpartylibs-mac.git
echo
"URL for libraries set to
${
libs
}
"
${
gitcmd
}
clone
${
incs
}
Third_Party/include
${
gitcmd
}
clone
${
libs
}
Third_Party/lib/mac64
exit
0
}
# First check if everything is already there - if so we just want to update
if
[
-d
Third_Party/include
]
;
then
update
else
clone
fi
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