Skip to content

Commit

Permalink
build: add salem sample data for mfext only (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste authored Nov 5, 2024
1 parent 52542a6 commit dcaebf9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions adm/templates/profile
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,15 @@ fi
{% endif %}

{% if MFMODULE == "MFEXT" %}
# For salem users not allowed to get salem-sample-data file from internet, you can execute (once only) the following two commented lines
# mkdir -p "${HOME}/.salem_cache"
# ln -s "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip" "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
if test -f "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"; then
if test ! -d "${HOME}/.salem_cache"; then
mkdir -p "${HOME}/.salem_cache"
fi
if test ! -L "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"; then
rm -f "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
ln -s "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip" "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
fi
fi
{% endif %}

# A little kind of magic to deal with [log]/json_file=AUTO
Expand Down

0 comments on commit dcaebf9

Please sign in to comment.