Skip to content
Snippets Groups Projects
Commit bbec5c1b authored by Jochen Meyer's avatar Jochen Meyer
Browse files

fixing get_files script to retrieve locally installed files

If code is checkout locally and atlas_install_scripts is added (or
extended) in the CMakeLists.txt file in order to make (more)
scripts available, it does work in the sense that the scripts can
be executed. However, using the "get_files" script to download
or better copy the file fails and reports the file cannot be
found. If job options, data files and xmls are installed by in
local modifcation of the CMakeLists.txt, those files can be found.
The script even recognizes installed scripts which are already part
of the build, i.e. centrally available. Only local script files
cannot be found even though they can be exectued.

This MR should prevent developers to get (more) insane and frantic
by adjusting the path variable in get_files ........... o_O


Former-commit-id: 21544891
parent 61cab8b6
No related merge requests found
......@@ -77,7 +77,10 @@ get_one_file() {
path_opt=${DATAPATH//:/ }
elif [ "$opt" == "scripts" ]; then
# Only keep PATH entries located in the installation areas to find scripts.
path_opt=$(echo -e ${PATH//:/'\n'} | fgrep /InstallArea/)
path_opt=""
for binpath in $(echo -e ${CMAKE_PREFIX_PATH//:/ }); do
path_opt="${path_opt}$binpath/bin $binpath/share "
done
elif [ "$opt" == "xmls" ]; then
path_opt=${XMLPATH//:/ }
fi
......
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