Skip to content
Snippets Groups Projects
Commit 36e38b2e authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[bin][installexternal] Update script

* add dune-alugrid
* add dune-foamgrid
* correct remote urls
parent 58378221
No related branches found
No related tags found
1 merge request!96[bin][installexternal] Update script
...@@ -30,6 +30,29 @@ createExternalDirectory() ...@@ -30,6 +30,29 @@ createExternalDirectory()
fi fi
} }
installAluGrid()
{
cd $TOPDIR
checkLocationForDuneModules dune-alugrid
if test $CORRECT_LOCATION_FOR_DUNE_MODULES == "n"; then
return
fi
if [ ! -e dune-alugrid ]; then
git clone -b releases/2.4 https://gitlab.dune-project.org/extensions/dune-alugrid.git
fi
if test "$DOWNLOAD_ONLY" == "y"; then
return
fi
if test "$CLEANUP" == "y"; then
rm -rf dune-alugrid
return
fi
}
installCornerpoint() installCornerpoint()
{ {
cd $TOPDIR cd $TOPDIR
...@@ -59,6 +82,29 @@ installCornerpoint() ...@@ -59,6 +82,29 @@ installCornerpoint()
cd $TOPDIR cd $TOPDIR
} }
installFoamGrid()
{
cd $TOPDIR
checkLocationForDuneModules dune-foamgrid
if test $CORRECT_LOCATION_FOR_DUNE_MODULES == "n"; then
return
fi
if [ ! -e dune-foamgrid ]; then
git clone -b releases/2.4 https://gitlab.dune-project.org/extensions/dune-foamgrid.git
fi
if test "$DOWNLOAD_ONLY" == "y"; then
return
fi
if test "$CLEANUP" == "y"; then
rm -rf dune-foamgrid
return
fi
}
installMETIS() installMETIS()
{ {
cd $EXTDIR cd $EXTDIR
...@@ -203,7 +249,7 @@ installPDELab() ...@@ -203,7 +249,7 @@ installPDELab()
fi fi
if [ ! -e dune-pdelab ]; then if [ ! -e dune-pdelab ]; then
git clone -b releases/2.0 http://git.dune-project.org/repositories/dune-pdelab git clone -b releases/2.0 https://gitlab.dune-project.org/pdelab/dune-pdelab.git
fi fi
if test "$DOWNLOAD_ONLY" == "y"; then if test "$DOWNLOAD_ONLY" == "y"; then
...@@ -228,7 +274,7 @@ installTypeTree() ...@@ -228,7 +274,7 @@ installTypeTree()
fi fi
if [ ! -e dune-typetree ]; then if [ ! -e dune-typetree ]; then
git clone -b releases/2.3 http://git.dune-project.org/repositories/dune-typetree git clone -b releases/2.3 https://gitlab.dune-project.org/pdelab/dune-typetree.git
fi fi
if test "$DOWNLOAD_ONLY" == "y"; then if test "$DOWNLOAD_ONLY" == "y"; then
...@@ -307,7 +353,9 @@ usage() ...@@ -307,7 +353,9 @@ usage()
echo "" echo ""
echo "Where PACKAGES is one or more of the following" echo "Where PACKAGES is one or more of the following"
echo " all Install everything and the kitchen sink." echo " all Install everything and the kitchen sink."
echo " cornerpoint Download dune-cornerpoint." echo " alugrid Download dune-alugrid."
echo " cornerpoint Download and patch dune-cornerpoint."
echo " foamgrid Download dune-foamgrid."
echo " metis Install the METIS graph partitioner." echo " metis Install the METIS graph partitioner."
echo " multidomain Download dune-multidomain." echo " multidomain Download dune-multidomain."
echo " multidomaingrid Download and patch dune-multidomaingrid." echo " multidomaingrid Download and patch dune-multidomaingrid."
...@@ -375,7 +423,9 @@ for TMP in "$@"; do ...@@ -375,7 +423,9 @@ for TMP in "$@"; do
all) all)
SOMETHING_DONE="y" SOMETHING_DONE="y"
createExternalDirectory createExternalDirectory
installAluGrid
installCornerpoint installCornerpoint
installFoamGrid
installMETIS installMETIS
installMultidomain installMultidomain
installMultidomainGrid installMultidomainGrid
...@@ -384,10 +434,18 @@ for TMP in "$@"; do ...@@ -384,10 +434,18 @@ for TMP in "$@"; do
installTypeTree installTypeTree
installUG installUG
;; ;;
alugrid|dune-alugrid)
SOMETHING_DONE="y"
installAluGrid
;;
cornerpoint|dune-cornerpoint) cornerpoint|dune-cornerpoint)
SOMETHING_DONE="y" SOMETHING_DONE="y"
installCornerpoint installCornerpoint
;; ;;
foamgrid|dune-foamgrid)
SOMETHING_DONE="y"
installFoamGrid
;;
metis) metis)
SOMETHING_DONE="y" SOMETHING_DONE="y"
createExternalDirectory createExternalDirectory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment