summaryrefslogtreecommitdiff
path: root/md/writeup/openwrt_dependency_graph_drawing.md
diff options
context:
space:
mode:
Diffstat (limited to 'md/writeup/openwrt_dependency_graph_drawing.md')
-rw-r--r--md/writeup/openwrt_dependency_graph_drawing.md12
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