Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
a1df51f9
Commit
a1df51f9
authored
Feb 05, 2016
by
Pietro Incardona
Browse files
Added gfortran detection script
parent
a1ae9507
Changes
2
Hide whitespace changes
Inline
Side-by-side
script/detect_gfortran
0 → 100755
View file @
a1df51f9
#! /bin/bash
function
detect_gfortran
()
{
command
-v
$1
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
dgc_ret
=
0
return
fi
dgc_ret
=
1
}
script/solve_gfortran
0 → 100644
View file @
a1df51f9
#! /bin/bash
function
solve_gfortran
()
{
source
script/show_solutions
source
script/discover_package_manager
discover_package_manager
$1
pcman
=
$discover_package_manager_ret
if
[
x
"
$pcman
"
=
x
""
]
;
then
exit
1
fi
if
[
x
"
$1
"
=
x
"osx"
]
;
then
commands[0]
=
"
$pcman
install gfortran"
possible_solutions
"
${
commands
[@]
}
"
echo
"Executing:
${
command
[
$possible_solutions_ret
]
}
"
eval
${
commands
[
$possible_solutions_ret
]
}
elif
[
x
"
$1
"
=
x
"linux"
]
;
then
commands[0]
=
"su -c
\"
$pcman
install cmake
\"
"
commands[1]
=
"sudo
$pcman
install cmake"
possible_solutions
"
${
commands
[@]
}
"
echo
"Executing:
${
command
[
$possible_solutions_ret
]
}
"
eval
${
commands
[
$possible_solutions_ret
]
}
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment