mirror of
https://github.com/hohn/codeql-sample-polkit.git
synced 2025-12-16 13:53:04 +01:00
Add svg rendering of CFG
This commit is contained in:
committed by
=Michael Hohn
parent
1b8412ca1d
commit
9e8345152e
18186
PrintCFG.dgml/cpp/example/polkit/cfg.svg
Normal file
18186
PrintCFG.dgml/cpp/example/polkit/cfg.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 943 KiB |
@@ -25,7 +25,12 @@ tidy -xml $PRE.dgml | sponge $PRE.dgml
|
|||||||
./dgml2dot < $PRE.dgml > $PRE.dot
|
./dgml2dot < $PRE.dgml > $PRE.dot
|
||||||
|
|
||||||
# Produce the layed-out DAG
|
# Produce the layed-out DAG
|
||||||
|
# Render -- slow steps:
|
||||||
|
dot -Tsvg < $PRE.dot > $PRE.svg &
|
||||||
dot -Tpdf < $PRE.dot > $PRE.pdf &
|
dot -Tpdf < $PRE.dot > $PRE.pdf &
|
||||||
|
|
||||||
|
# View
|
||||||
|
open -a safari $PRE.svg
|
||||||
open $PRE.pdf
|
open $PRE.pdf
|
||||||
|
|
||||||
# Faster than dot, as sanity check:
|
# Faster than dot, as sanity check:
|
||||||
|
|||||||
Reference in New Issue
Block a user