summaryrefslogtreecommitdiff
path: root/bin/show-dependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-15 09:58:00 +0200
committerErich Eckner <git@eckner.net>2017-09-15 09:58:00 +0200
commitb1cbd3e9acee71946267189f2696efe3ded7ad7e (patch)
tree195b62e9d38afb42c5744dabdf8f5554e21300ca /bin/show-dependencies
parent31f6cefdfc48ccb4454e7a2e2c84c9221415c498 (diff)
downloadbuilder-b1cbd3e9acee71946267189f2696efe3ded7ad7e.tar.xz
bin/show-dependencies: add all build list packages to ALL.png
Diffstat (limited to 'bin/show-dependencies')
-rwxr-xr-xbin/show-dependencies19
1 files changed, 11 insertions, 8 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index a3b32bc..a1ac171 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -157,7 +157,6 @@ for target_package in "$@"; do
# groups and split packages built by jobs on the build list
cat "${tmp_dir}/known-groups" "${tmp_dir}/known-split-packages" | \
- grep -v '^\(\S\+\) \1$' | \
sort -k1,1 | \
join -1 1 -2 1 -o 1.2 - "${tmp_dir}/build-list.sorted-by-package" | \
sort -u > \
@@ -173,10 +172,13 @@ for target_package in "$@"; do
sort -u | \
sponge "${tmp_dir}/relevant-stuff"
- sort -k1,1 "${tmp_dir}/original-build-order" | \
- join -1 1 -2 1 -o 1.1,1.2 - "${tmp_dir}/relevant-stuff" | \
- sort -k2,2 | \
- join -1 2 -2 1 -o 1.1,1.2 - "${tmp_dir}/relevant-stuff" > \
+ {
+ sort -k1,1 "${tmp_dir}/original-build-order" | \
+ join -1 1 -2 1 -o 1.1,1.2 - "${tmp_dir}/relevant-stuff" | \
+ sort -k2,2 | \
+ join -1 2 -2 1 -o 1.1,1.2 - "${tmp_dir}/relevant-stuff"
+ sed 's/.*/\0 \0/' "${tmp_dir}/relevant-stuff"
+ } > \
"${tmp_dir}/build-order"
rm "${tmp_dir}/relevant-stuff"
@@ -220,8 +222,8 @@ for target_package in "$@"; do
fi
- grep -v '^\(\S\+\) \1$' "${tmp_dir}/build-order" | \
- sponge "${tmp_dir}/build-order"
+# grep -v '^\(\S\+\) \1$' "${tmp_dir}/build-order" | \
+# sponge "${tmp_dir}/build-order"
# shellcheck disable=SC2129
tr ' ' '\n' < \
@@ -340,7 +342,8 @@ for target_package in "$@"; do
fi
- sort -u "${tmp_dir}/build-order" | \
+ grep -v '^\(\S\+\) \1$' "${tmp_dir}/build-order" | \
+ sort -u | \
sponge "${tmp_dir}/build-order"
sort -u "${tmp_dir}/knots" | \
sponge "${tmp_dir}/knots"