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
bd1a6096
Commit
bd1a6096
authored
Feb 21, 2017
by
incardon
Browse files
creating upgrade option
parent
061db92f
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/update_openfpm
View file @
bd1a6096
...
...
@@ -43,17 +43,29 @@ function update_openfpm()
git checkout
$branch
git submodule update
sh autogen.sh
./config.status
if
[
$?
-ne
0
]
;
then
echo
-e
"Update summary
\0
33[91;5;1m FAILED
\0
33[0m"
fi
make
if
[
$?
-ne
0
]
;
then
echo
-e
"Update summary
\0
33[91;5;1m FAILED
\0
33[0m"
if
[
x
"
$1
"
==
x
"update"
]
;
then
sh autogen.sh
./config.status
if
[
$?
-ne
0
]
;
then
echo
-e
"Update summary
\0
33[91;5;1m FAILED
\0
33[0m"
fi
make
if
[
$?
-ne
0
]
;
then
echo
-e
"Update summary
\0
33[91;5;1m FAILED
\0
33[0m"
else
echo
-e
"Update summary
\0
33[92;5;1m SUCCEED
\0
33[0m"
echo
-e
"To make the update active do:
\0
33[1m make install
\0
33[0m"
fi
else
echo
-e
"Update summary
\0
33[92;5;1m SUCCEED
\0
33[0m"
echo
-e
"To make the update active do:
\0
33[1m make install
\0
33[0m"
dir_prev_inst
=
$(
cat
dependencies_dir
)
for_opt
=
$(
cat
foward_options
)
if
[
x
"
$dir_prev_inst
"
!=
x
""
]
;
then
dir_prev_inst
=
"-i dir_prev_inst"
fi
if
[
x
"
$foward_options
"
!=
x
""
]
;
then
foward_options
=
"-i foward_options"
fi
./install
$dir_prev_inst
$foward_options
fi
## end
...
...
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