Add s6 dependency tree script

This commit is contained in:
Alex D. 2023-10-05 14:13:48 +00:00
parent 86e20322e2
commit fbd840ff8c
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 12 additions and 0 deletions

12
s6-deptree.sh Executable file
View File

@ -0,0 +1,12 @@
(
echo 'digraph G {'
echo 'graph [layout=dot rankdir=LR]'
(
for i in $(s6-rc-db dependencies default); do
for j in $(s6-rc-db dependencies $i); do
printf '"%s" -> "%s"\n' "$j" "$i"
done
done
) | sort | uniq
echo '}'
) | grep -v 's6rc' > boot.gv