diff options
author | FreeArtMan <dos21h@gmail.com> | 2023-02-04 14:10:26 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2023-02-04 14:10:26 +0000 |
commit | 380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch) | |
tree | 9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/openwrt_dependency_graph_drawing.md | |
parent | df881efab146ca3ee61bf8936f948dd976fc4740 (diff) | |
download | md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.tar.gz md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.zip |
Update all content to new pygmentize
Diffstat (limited to 'md/writeup/openwrt_dependency_graph_drawing.md')
-rw-r--r-- | md/writeup/openwrt_dependency_graph_drawing.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/md/writeup/openwrt_dependency_graph_drawing.md b/md/writeup/openwrt_dependency_graph_drawing.md index 49a5b80..f36e418 100644 --- a/md/writeup/openwrt_dependency_graph_drawing.md +++ b/md/writeup/openwrt_dependency_graph_drawing.md @@ -15,7 +15,7 @@ system design. *.ipk files are tar.gz archives and can be renamed as *.tar.gz and opened with GUI or in terminal: -``` +```sh tar -xvf package.ipg ``` @@ -32,7 +32,7 @@ Here tree based on OpenWRT git commit of 24 May 2013 How to use script, first parametr of script is directory where is all OpenWrt package files usualy it is under -``` +```text openwrt-trunk/ bin/ platform-name/ @@ -42,7 +42,7 @@ openwrt-trunk/ To use type -``` +```sh deptree.py system-path/openwrt-trunk/bin/platform-name/packages ``` @@ -50,14 +50,14 @@ deptree.py system-path/openwrt-trunk/bin/platform-name/packages Output files comes in same directory where script where lunched generated file name is: -``` +```text deptree.dot ``` now convert dot file to pdf, psd, png: -``` +```sh dot -Tps $(NAME).dot -o graph1.ps dot -Tpdf $(NAME).dot -o graph1.pdf dot -Tpng $(NAME).dot -o graph1.png @@ -75,7 +75,7 @@ image is little bit cleaner Rules with dependecies where removed: -``` +```text if (A depends on [B,C] and B depends on [C]) and there is (edges A->B->C and A->C) then dependency C can be removed from A |