diff options
author | Andrei Pavel <andrei@isc.org> | 2024-06-20 16:19:03 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2024-06-20 17:31:30 +0200 |
commit | aa5fab9c9fb3001a5550a74e87c989e23811153a (patch) | |
tree | b8079368fa07c3c88eeac15dbf28d12902d7b5db /tools/check-lib-dependencies.sh | |
parent | [#3287] address review (diff) | |
download | kea-aa5fab9c9fb3001a5550a74e87c989e23811153a.tar.xz kea-aa5fab9c9fb3001a5550a74e87c989e23811153a.zip |
[#3287] address review
Diffstat (limited to 'tools/check-lib-dependencies.sh')
-rwxr-xr-x | tools/check-lib-dependencies.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/check-lib-dependencies.sh b/tools/check-lib-dependencies.sh index be91bb8ef3..da0026cb3c 100755 --- a/tools/check-lib-dependencies.sh +++ b/tools/check-lib-dependencies.sh @@ -166,9 +166,9 @@ compute_dependencies() { fi done # all found dependencies in the reverse compilation order - BASE_DEPENDENCIES=$(echo "${BASE_DEPENDENCIES}" | xargs) + BASE_DEPENDENCIES=$(echo "${BASE_DEPENDENCIES}" | sed 's/ *$//') # all found and valid dependencies in the reverse compilation order - NON_RECURSIVE_BASE_DEPENDENCIES=$(echo "${NON_RECURSIVE_BASE_DEPENDENCIES}" | xargs) + NON_RECURSIVE_BASE_DEPENDENCIES=$(echo "${NON_RECURSIVE_BASE_DEPENDENCIES}" | sed 's/^ *//;s/ *$//') echo "${ARTIFACT_PATH}/${ARTIFACT} base dependencies:" echo "${BASE_DEPENDENCIES}" echo "${ARTIFACT_PATH}/${ARTIFACT} non recursive dependencies:" @@ -183,7 +183,7 @@ compute_dependencies() { DEPENDENCIES="${NEW_DEPENDENCIES} ${DEPENDENCIES}" fi done - DEPENDENCIES=$(echo "${DEPENDENCIES} ${NON_RECURSIVE_BASE_DEPENDENCIES}" | tr -s " " "\n" | sort -u | xargs) + DEPENDENCIES=$(echo "${DEPENDENCIES} ${NON_RECURSIVE_BASE_DEPENDENCIES}" | tr -s " " "\n" | sort -u | sed 's/ *$//') # order dependencies in the order of compilation SORTED_DEPENDENCIES= for j in ${LIBRARIES_LIST}; do |