diff --git a/Tools/Scripts/share/get_files b/Tools/Scripts/share/get_files index df8767aa2efccd8fab69726ce41a8de257f7eee7..a727cdcaf6fa874c4606d837bad8666a62f06917 100755 --- a/Tools/Scripts/share/get_files +++ b/Tools/Scripts/share/get_files @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # get_files [options] [files] [options] [files] ... # @@ -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