summaryrefslogtreecommitdiffstats
path: root/tools/check-lib-dependencies.sh
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2024-06-20 16:19:03 +0200
committerAndrei Pavel <andrei@isc.org>2024-06-20 17:31:30 +0200
commitaa5fab9c9fb3001a5550a74e87c989e23811153a (patch)
treeb8079368fa07c3c88eeac15dbf28d12902d7b5db /tools/check-lib-dependencies.sh
parent[#3287] address review (diff)
downloadkea-aa5fab9c9fb3001a5550a74e87c989e23811153a.tar.xz
kea-aa5fab9c9fb3001a5550a74e87c989e23811153a.zip
[#3287] address review
Diffstat (limited to 'tools/check-lib-dependencies.sh')
-rwxr-xr-xtools/check-lib-dependencies.sh6
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