Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
8fd64424
Commit
8fd64424
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding wget solution in prerequisites
parent
b3e088a0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
script/pre_req
+17
-0
17 additions, 0 deletions
script/pre_req
script/solve_autoconf
+0
-0
0 additions, 0 deletions
script/solve_autoconf
script/solve_wget
+24
-0
24 additions, 0 deletions
script/solve_wget
with
41 additions
and
0 deletions
script/pre_req
+
17
−
0
View file @
8fd64424
...
...
@@ -40,6 +40,23 @@ if [ x"$platform" = x"osx" -a x"$pcman" = x"" ]; then
echo
-e
"
\0
33[93;5;1m WARNING
\0
33[0m No package manager has been found on this system"
fi
command
-v
wget
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
echo
>
&2
echo
-e
"wget
\0
33[91;5;1m FAILED
\0
33[0m"
echo
"OpenFPM require wget but it's not installed, searching a solution... "
script/solve_wget
$platform
command
-v
wget
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
echo
-e
"wget
\0
33[91;5;1m FAILED
\0
33[0m"
exit
1
else
echo
-e
"wget
\0
33[92;1m SUCCESS
\0
33[0m"
fi
else
echo
-e
"wget
\0
33[92;1m SUCCESS
\0
33[0m"
fi
command
-v
git
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
echo
>
&2
...
...
This diff is collapsed.
Click to expand it.
script/solve_autoconf
100644 → 100755
+
0
−
0
View file @
8fd64424
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
script/solve_wget
0 → 100644
+
24
−
0
View file @
8fd64424
#! /bin/bash
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 wget"
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 wget
\"
"
commands[1]
=
"sudo
$pcman
install wget"
possible_solutions
"
${
commands
[@]
}
"
echo
"Executing:
${
command
[
$possible_solutions_ret
]
}
"
eval
${
commands
[
$possible_solutions_ret
]
}
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