@@ -36,20 +36,6 @@ download_release_and_untar() {
3636 curl -L $url | tar xz --directory $outputdir || exit 1
3737}
3838
39- download_release () {
40- prj=$1
41- version=$2
42- if [ $# -eq 3 ]; then
43- url=$3
44- else
45- url=$GH_BASE /$prj /archive/refs/tags/$version .tar.gz
46- fi
47-
48- echo -e " \e[1;32mDownloading $url in meshing_mirrors\e[0m"
49- mkdir -p meshing_mirror/$prj
50- curl -L $url > meshing_mirror/$prj /$prj -$version .tar.gz || exit 1
51- }
52-
5339clone () {
5440 prj=$1
5541 outputdir=$2
@@ -80,15 +66,9 @@ if [[ $1 = "mirror-releases" ]] && [ $# -eq 2 ]; then
8066 echo -e " \n\e[1;34m=== Project $prj \e[0m"
8167 clone $prj LIHPC-Computational-Geometry/$prj
8268 prj_version=${products[$prj]}
83- download_release $prj $prj_version
8469 done
8570
8671 # ### Special cooking to prepare bundle
87- # Spack needs vtk-maillage tarball == VTK 7.1.1 tarball
88- # Spack recipe applies patches on VTK tarball
89- # echo -e "\n\e[1;34m=== Project vtk-maillage\e[0m"
90- # download_release vtk-maillage '7.1.1' https://vtk.org/files/release/7.1/VTK-7.1.1.tar.gz
91-
9272 # Mirroring spack_recipes from mirrors
9373 echo -e " \n\e[1;34m=== Spack recipes\e[0m"
9474 prj=spack_recipes
@@ -97,14 +77,10 @@ if [[ $1 = "mirror-releases" ]] && [ $# -eq 2 ]; then
9777 rm -rf $prj -$2 /meshing/packages/machine-types
9878 rm -rf $prj -$2 /meshing/packages/lima
9979
100- echo -e " \n\e[1;34m=== Tar recipes and mirrors \e[0m"
80+ echo -e " \n\e[1;34m=== Tar recipes\e[0m"
10181 rm $prj -$2 /meshing/repo.yaml
10282 tar cvfz meshing_recipes.tar.gz -C $prj -$2 /meshing .
10383 rm -rf $prj -$2
104-
105- # Tar all mirrors
106- rm -rf meshing_mirror/machine-types
107- tar cvfz meshing_mirror.tar.gz -C meshing_mirror . && rm -rf meshing_mirror
10884 # ### End of Special cooking
10985
11086 echo -e " \n\e[1;34mMirror available in: $MIRROR_DIR \e[0m"
0 commit comments