[yast-devel] Script for creating graphs from ycp code
Hi, I have created simple python script for creating graph of includes/imports from ycp scripts. The script generates graph in dot format (see www.graphviz.org) and it can be transformed to a lot of formats (see man dot). Some basic usage is written in help (just run script without paramters). Script is attached (ycp_graph) and I attach some graphs generated by this tool too. Graph bootloader-graph.png is generated by command: $ ./ycp_graph /usr/share/YaST2/clients/bootloader.ycp 10 BootArch \ BootCommon BootELILO BootGRUB BootLILO Bootloader \ BootPOWERLILO BootZIPL > bootloader-graph.txt $ dot -Tpng -obootloader-graph.png bootloader-graph.txt Graph firewall-graph.png by command: $ ./ycp_graph /usr/share/YaST2/clients/firewall.ycp 10 \ SuSEFirewallCMDLine SuSEFirewallUI SuSEFirewall \ SuSEFirewallServices SuSEFirewallExpertRules \ SuSEFirewallProposal > firewall-graph.txt $ dot -Tpng -ofirewall-graph.png firewall-graph.txt I hope it can help someone to cipher out some yast module as it helped me with bootloader :). Cheers, Dan
participants (1)
-
Daniel Fiser