Skip to content
Snippets Groups Projects
Commit 76a451f0 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

changed the way of handling yaco version in the yaco-build script to avoid...

changed the way of handling yaco version in the yaco-build script to avoid extra step in the release
parent fb4ba191
No related branches found
No related tags found
1 merge request!44Upgraded the yac version to 3.2.0.p1
......@@ -21,8 +21,7 @@ REPO_TAG_FDB="5.11.94"
REPO_TAG_FYAML="v0.9"
REPO_TAG_CFITSIO="4.1.0"
REPO_TAG_HEALPIX="trunk"
REPO_TAG_YACO="v1.3"
# YACO_YAC_VERSION="release-3.2.0_p1"
YACO_YAC_VERSION="release-3.2.0_p1"
# we trust that the yac version in the checked out external folder of yaco is the right one
# otherwise, this is a source of version conflict if used from within a repository and not as a standalone script
# TODO: if this is acceptable, may be extend it to other submodules of this repo
......@@ -39,9 +38,7 @@ function print_versions {
echo "FYAML $REPO_TAG_FYAML"
echo "CFITSIO $REPO_TAG_CFITSIO"
echo "HEALPIX $REPO_TAG_HEALPIX"
echo "YACO $REPO_TAG_YACO"
echo "YACO_YAC $YACO_YAC_VERSION"
}
function usage {
......@@ -305,24 +302,24 @@ function install_healpix {
}
function make_yaco() {
# it is expected that the main branch is a production branch
REPO_NAME="yaco"
VERSIONED_FOLDER=$REPO_NAME-${REPO_TAG_YACO/\//-}
BRANCH_NAME="main"
VERSIONED_FOLDER=$REPO_NAME-${BRANCH_NAME/\//-}
REPO_PATH=$GIT_REPOS/$VERSIONED_FOLDER
GIT_URL=https://gitlab.dkrz.de/mpim-sw/yaco.git
# it is expected that the main branch is a production branch
clone_to "$GIT_URL" "$REPO_PATH"
clone_to "$GIT_URL" "$REPO_PATH" "$BRANCH_NAME"
echo "$INSTALL_FOLDER"
LIBS="-DCMAKE_PREFIX_PATH=\
$INSTALL_FOLDER/eccodes-$REPO_TAG_ECCODES;\
$INSTALL_FOLDER/eckit-$REPO_TAG_ECKIT;\
$INSTALL_FOLDER/fdb-$REPO_TAG_FDB;\
$INSTALL_FOLDER/cxx-healpix-$REPO_TAG_HEALPIX;\
$INSTALL_FOLDER/cfitsio-$REPO_TAG_CFITSIO;\
$INSTALL_FOLDER/fyaml-$REPO_TAG_FYAML;\
";
$INSTALL_FOLDER/eccodes-$REPO_TAG_ECCODES;\
$INSTALL_FOLDER/eckit-$REPO_TAG_ECKIT;\
$INSTALL_FOLDER/fdb-$REPO_TAG_FDB;\
$INSTALL_FOLDER/cxx-healpix-$REPO_TAG_HEALPIX;\
$INSTALL_FOLDER/cfitsio-$REPO_TAG_CFITSIO;\
$INSTALL_FOLDER/fyaml-$REPO_TAG_FYAML;\
";
YAML=(
"-DFYAML_INCLUDE_DIRS=${INSTALL_FOLDER}/fyaml-$REPO_TAG_FYAML/include"
"-DFYAML_LIBRARIES=${INSTALL_FOLDER}/fyaml-$REPO_TAG_FYAML/lib64/libfyaml.a"
......
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