From c698d584eb52702c5dfe2f7763a423d518e09122 Mon Sep 17 00:00:00 2001
From: Boris Basic <boris.basic@edf.fr>
Date: Wed, 13 Nov 2024 15:07:33 +0100
Subject: [PATCH] Use GitLab hosted sources for MED, AED2 and GOTM

---
 build-telemac.bat | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build-telemac.bat b/build-telemac.bat
index 0879cbe..c1051fd 100644
--- a/build-telemac.bat
+++ b/build-telemac.bat
@@ -252,7 +252,7 @@ rem ***
 rem MED
 rem ***
 :build_med
-call :download %med% "https://files.salome-platform.org/Salome/medfile/med-4.1.1.tar.gz" || exit /b 1
+call :download %med% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/443/download" || exit /b 1
 set cmake_config_options=-DHDF5_ROOT_DIR:PATH=%external_path%/%hdf5% -DMEDFILE_BUILD_TESTS:BOOL=OFF -DMEDFILE_INSTALL_DOC:BOOL=OFF
 if %compiler% == intel (
   rem MED libraries cannot be built as shared libraries with Visual Studio generator as they
@@ -356,7 +356,7 @@ rem ****
 rem AED2
 rem ****
 :build_aed2
-call :download %aed2% "http://www.opentelemac.org/index.php/component/jdownloads/finish/39-manual-installation-sources/2126-aed2m/0?Itemid=55" || exit /b 1
+call :download %aed2% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/444/download" || exit /b 1
 echo Building libaed2...
 set install_dir=%external_path%\%aed2%
 rd /s/q %install_dir% 2>nul
@@ -377,7 +377,7 @@ rem ****
 rem GOTM
 rem ****
 :build_gotm
-call :download %gotm% "http://www.opentelemac.org/index.php/component/jdownloads/finish/39-manual-installation-sources/2127-gotm/0?Itemid=54" || exit /b 1
+call :download %gotm% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/445/download" || exit /b 1
 set cmake_config_options=-DBUILD_SHARED_LIBS:BOOL=ON -DGOTM_USE_NetCDF:BOOL=OFF -DGOTM_EMBED_VERSION:BOOL=OFF
 call :cmake_build %gotm% || exit /b 1
 exit /b 0
-- 
GitLab