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
14c95abd
Commit
14c95abd
authored
Mar 15, 2016
by
Pietro Incardona
Browse files
Fixing installation
parent
f48f4a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/remove_old
View file @
14c95abd
...
...
@@ -74,16 +74,31 @@ function remove_old()
fi
## Check the installed version of the dependencies
is_update
=
$(
cat
$1
/BOOST/include/boost/version.hpp |
grep
"#define BOOST_VERSION 106000"
)
if
[
x
"
$is_update
"
==
x
""
]
;
then
echo
"New boost version, removing the old one"
rm
-rf
$1
/BOOST/include
rm
-rf
$1
/BOOST/lib
rm
-rf
$1
/BOOST
cat
$1
/BOOST/include/boost/version.hpp
>
/dev/null
if
[
$?
-eq
0
]
;
then
is_update
=
$(
cat
$1
/BOOST/include/boost/version.hpp |
grep
"#define BOOST_VERSION 106000"
)
if
[
x
"
$is_update
"
==
x
""
]
;
then
echo
"
\0
33[1;34;5m New boost version, removing the old one
\0
33[0m"
sleep
3
rm
-rf
$1
/BOOST/include
rm
-rf
$1
/BOOST/lib
rm
-rf
$1
/BOOST
fi
fi
##
cat
$1
/METIS/version
if
[
$?
-eq
0
]
;
then
version
=
$(
cat
$1
/METIS/version
)
if
[
x
"
$version
"
!=
x
"1"
]
;
then
echo
-e
"
\0
33[1;34;5m New METIS version, removing the old one
\0
33[0m"
sleep
3
rm
-rf
$1
/METIS/include
rm
-rf
$1
/METIS/lib
rm
-rf
$1
/METIS
fi
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