Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
37dcb497
Commit
37dcb497
authored
8 years ago
by
Marko Petric
Browse files
Options
Downloads
Patches
Plain Diff
Addopt logic for bootstrap
parent
6e1094a6
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
.dd4hep-ci.d/init_x86_64.sh
+7
-5
7 additions, 5 deletions
.dd4hep-ci.d/init_x86_64.sh
with
7 additions
and
5 deletions
.dd4hep-ci.d/init_x86_64.sh
+
7
−
5
View file @
37dcb497
#!/bin/bash
#Determine which OS you are using
if
[
"
$(
cat
/etc/
*
-release
|
grep
Scientific
)
"
]
;
then
OS
=
slc6
elif
[
"
$(
cat
/etc/
*
-release
|
grep
CentOS
)
"
]
;
then
OS
=
centos7
elif
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
if
[
$(
sw_vers
-productVersion
|
awk
-F
'.'
'{print $1 "." $2}'
)
==
"10.12"
]
;
then
OS
=
mac1012
COMPILER_TYPE
=
clang80
else
echo
"Bootstrap only works on macOS Sierra (10.12)"
fi
elif
[
"
$(
uname
)
"
==
"Linux"
]
;
then
if
[
"
$(
cat
/etc/
*
-release
|
grep
Scientific
)
"
]
;
then
OS
=
slc6
elif
[
"
$(
cat
/etc/
*
-release
|
grep
CentOS
)
"
]
;
then
OS
=
centos7
fi
else
echo
"UNKNOWN OS"
exit
1
...
...
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