summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-01-27 23:06:07 +0300
committerAlex Kost <alezost@gmail.com>2016-01-29 20:21:54 +0300
commit710fa231f03633fe243b52635479d591946fec44 (patch)
tree9dd30cc4ad10084fb184bd65e10422074282931e
parentd4053c710bc2c7a4f624ba2d72438d8f289ad569 (diff)
guix system: Rename 'dmd-graph' to 'shepherd-graph'.
* doc/images/dmd-graph.dot: Rename to... * doc/images/shepherd-graph.dot: ... this. * doc.am (DOT_FILES): Adjust accordingly. * guix/scripts/system.scm (dmd-service-node-label) (dmd-service-node-type, export-dmd-graph): Rename to... (shepherd-service-node-label, shepherd-service-node-type) (export-shepherd-graph): ... this. (show-help, process-action, process-command): Rename 'dmd-graph' to 'shepherd-graph'. * emacs/guix-command.el (guix-command-additional-execute-arguments) (guix-command-special-executors): Likewise. * doc/guix.texi: Likewise. * doc/emacs.texi (Emacs Popup Interface): Likewise.
-rw-r--r--doc.am2
-rw-r--r--doc/emacs.texi2
-rw-r--r--doc/guix.texi10
-rw-r--r--doc/images/shepherd-graph.dot (renamed from doc/images/dmd-graph.dot)2
-rw-r--r--emacs/guix-command.el4
-rw-r--r--guix/scripts/system.scm24
6 files changed, 22 insertions, 22 deletions
diff --git a/doc.am b/doc.am
index ad59aa589be..05b42cd8603 100644
--- a/doc.am
+++ b/doc.am
@@ -26,7 +26,7 @@ DOT_FILES = \
26 doc/images/coreutils-graph.dot \ 26 doc/images/coreutils-graph.dot \
27 doc/images/coreutils-bag-graph.dot \ 27 doc/images/coreutils-bag-graph.dot \
28 doc/images/service-graph.dot \ 28 doc/images/service-graph.dot \
29 doc/images/dmd-graph.dot 29 doc/images/shepherd-graph.dot
30 30
31DOT_VECTOR_GRAPHICS = \ 31DOT_VECTOR_GRAPHICS = \
32 $(DOT_FILES:%.dot=%.eps) \ 32 $(DOT_FILES:%.dot=%.eps) \
diff --git a/doc/emacs.texi b/doc/emacs.texi
index 8020e0ace36..92a9107ad1f 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -578,7 +578,7 @@ GNU Emacs Manual}).
578 578
579@end itemize 579@end itemize
580 580
581Several commands (@command{guix graph}, @command{guix system dmd-graph} 581Several commands (@command{guix graph}, @command{guix system shepherd-graph}
582and @command{guix system extension-graph}) also have a ``View graph'' 582and @command{guix system extension-graph}) also have a ``View graph''
583action, which allows you to view a generated graph using @command{dot} 583action, which allows you to view a generated graph using @command{dot}
584command (specified by @code{guix-dot-program} variable). By default a 584command (specified by @code{guix-dot-program} variable). By default a
diff --git a/doc/guix.texi b/doc/guix.texi
index dd2f4902330..63f5d327cf1 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9348,8 +9348,8 @@ $ guix system extension-graph @var{file} | dot -Tpdf > services.pdf
9348 9348
9349produces a PDF file showing the extension relations among services. 9349produces a PDF file showing the extension relations among services.
9350 9350
9351@anchor{system-dmd-graph} 9351@anchor{system-shepherd-graph}
9352@item dmd-graph 9352@item shepherd-graph
9353Emit in Dot/Graphviz format to standard output the @dfn{dependency 9353Emit in Dot/Graphviz format to standard output the @dfn{dependency
9354graph} of shepherd services of the operating system defined in 9354graph} of shepherd services of the operating system defined in
9355@var{file}. @xref{Shepherd Services}, for more information and for an 9355@var{file}. @xref{Shepherd Services}, for more information and for an
@@ -9795,11 +9795,11 @@ started, which in turn can only happen once all the file systems have
9795been mounted. The simple operating system defined earlier (@pxref{Using 9795been mounted. The simple operating system defined earlier (@pxref{Using
9796the Configuration System}) results in a service graph like this: 9796the Configuration System}) results in a service graph like this:
9797 9797
9798@image{images/dmd-graph,,5in,Typical dmd service graph.} 9798@image{images/shepherd-graph,,5in,Typical shepherd service graph.}
9799 9799
9800You can actually generate such a graph for any operating system 9800You can actually generate such a graph for any operating system
9801definition using the @command{guix system dmd-graph} command 9801definition using the @command{guix system shepherd-graph} command
9802(@pxref{system-dmd-graph, @command{guix system dmd-graph}}). 9802(@pxref{system-shepherd-graph, @command{guix system shepherd-graph}}).
9803 9803
9804The @var{%shepherd-root-service} is a service object representing 9804The @var{%shepherd-root-service} is a service object representing
9805PID@tie{}1, of type @var{shepherd-root-service-type}; it can be extended 9805PID@tie{}1, of type @var{shepherd-root-service-type}; it can be extended
diff --git a/doc/images/dmd-graph.dot b/doc/images/shepherd-graph.dot
index 220a2afca11..cc9aa441a18 100644
--- a/doc/images/dmd-graph.dot
+++ b/doc/images/shepherd-graph.dot
@@ -1,4 +1,4 @@
1digraph "Guix dmd-service" { 1digraph "Guix shepherd-service" {
2 "user-file-systems" [label = "user-file-systems", shape = box, fontname = Helvetica]; 2 "user-file-systems" [label = "user-file-systems", shape = box, fontname = Helvetica];
3 "user-processes" -> "user-file-systems" [color = red]; 3 "user-processes" -> "user-file-systems" [color = red];
4 "user-processes" [label = "user-processes", shape = box, fontname = Helvetica]; 4 "user-processes" [label = "user-processes", shape = box, fontname = Helvetica];
diff --git a/emacs/guix-command.el b/emacs/guix-command.el
index cf72b0ea154..ba6c3d2ba94 100644
--- a/emacs/guix-command.el
+++ b/emacs/guix-command.el
@@ -620,7 +620,7 @@ command."
620 (("size") 620 (("size")
621 ,(guix-command-make-argument 621 ,(guix-command-make-argument
622 :name "view" :char ?v :doc "View map")) 622 :name "view" :char ?v :doc "View map"))
623 (("system" "dmd-graph") ,graph-arg) 623 (("system" "shepherd-graph") ,graph-arg)
624 (("system" "extension-graph") ,graph-arg))) 624 (("system" "extension-graph") ,graph-arg)))
625 "Alist of guix commands and additional 'execute' action arguments.") 625 "Alist of guix commands and additional 'execute' action arguments.")
626 626
@@ -646,7 +646,7 @@ command."
646 ("view" . guix-run-view-graph)) 646 ("view" . guix-run-view-graph))
647 (("size") 647 (("size")
648 ("view" . guix-run-view-size-map)) 648 ("view" . guix-run-view-size-map))
649 (("system" "dmd-graph") 649 (("system" "shepherd-graph")
650 ("view" . guix-run-view-graph)) 650 ("view" . guix-run-view-graph))
651 (("system" "extension-graph") 651 (("system" "extension-graph")
652 ("view" . guix-run-view-graph))) 652 ("view" . guix-run-view-graph)))
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index b0f8be74b03..e31eec6fdae 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -312,17 +312,17 @@ list of services."
312 (label service-node-label) 312 (label service-node-label)
313 (edges (lift1 (service-back-edges services) %store-monad)))) 313 (edges (lift1 (service-back-edges services) %store-monad))))
314 314
315(define (dmd-service-node-label service) 315(define (shepherd-service-node-label service)
316 "Return a label for a node representing a <shepherd-service>." 316 "Return a label for a node representing a <shepherd-service>."
317 (string-join (map symbol->string (shepherd-service-provision service)))) 317 (string-join (map symbol->string (shepherd-service-provision service))))
318 318
319(define (dmd-service-node-type services) 319(define (shepherd-service-node-type services)
320 "Return a node type for SERVICES, a list of <shepherd-service>." 320 "Return a node type for SERVICES, a list of <shepherd-service>."
321 (node-type 321 (node-type
322 (name "dmd-service") 322 (name "shepherd-service")
323 (description "the dependency graph of dmd services") 323 (description "the dependency graph of shepherd services")
324 (identifier (lift1 dmd-service-node-label %store-monad)) 324 (identifier (lift1 shepherd-service-node-label %store-monad))
325 (label dmd-service-node-label) 325 (label shepherd-service-node-label)
326 (edges (lift1 (shepherd-service-back-edges services) %store-monad)))) 326 (edges (lift1 (shepherd-service-back-edges services) %store-monad))))
327 327
328 328
@@ -474,7 +474,7 @@ building anything."
474 #:node-type (service-node-type services) 474 #:node-type (service-node-type services)
475 #:reverse-edges? #t))) 475 #:reverse-edges? #t)))
476 476
477(define (export-dmd-graph os port) 477(define (export-shepherd-graph os port)
478 "Export the graph of shepherd services of OS to PORT." 478 "Export the graph of shepherd services of OS to PORT."
479 (let* ((services (operating-system-services os)) 479 (let* ((services (operating-system-services os))
480 (pid1 (fold-services services 480 (pid1 (fold-services services
@@ -484,7 +484,7 @@ building anything."
484 (null? (shepherd-service-requirement service))) 484 (null? (shepherd-service-requirement service)))
485 shepherds))) 485 shepherds)))
486 (export-graph sinks (current-output-port) 486 (export-graph sinks (current-output-port)
487 #:node-type (dmd-service-node-type dmds) 487 #:node-type (shepherd-service-node-type shepherds)
488 #:reverse-edges? #t))) 488 #:reverse-edges? #t)))
489 489
490 490
@@ -517,7 +517,7 @@ Build the operating system declared in FILE according to ACTION.\n"))
517 (display (_ "\ 517 (display (_ "\
518 extension-graph emit the service extension graph in Dot format\n")) 518 extension-graph emit the service extension graph in Dot format\n"))
519 (display (_ "\ 519 (display (_ "\
520 dmd-graph emit the graph of dmd services in Dot format\n")) 520 shepherd-graph emit the graph of shepherd services in Dot format\n"))
521 521
522 (show-build-options-help) 522 (show-build-options-help)
523 (display (_ " 523 (display (_ "
@@ -637,8 +637,8 @@ resulting from command-line parsing."
637 (case action 637 (case action
638 ((extension-graph) 638 ((extension-graph)
639 (export-extension-graph os (current-output-port))) 639 (export-extension-graph os (current-output-port)))
640 ((dmd-graph) 640 ((shepherd-graph)
641 (export-dmd-graph os (current-output-port))) 641 (export-shepherd-graph os (current-output-port)))
642 (else 642 (else
643 (perform-action action os 643 (perform-action action os
644 #:dry-run? dry? 644 #:dry-run? dry?
@@ -678,7 +678,7 @@ argument list and OPTS is the option alist."
678 (let ((action (string->symbol arg))) 678 (let ((action (string->symbol arg)))
679 (case action 679 (case action
680 ((build container vm vm-image disk-image reconfigure init 680 ((build container vm vm-image disk-image reconfigure init
681 extension-graph dmd-graph list-generations) 681 extension-graph shepherd-graph list-generations)
682 (alist-cons 'action action result)) 682 (alist-cons 'action action result))
683 (else (leave (_ "~a: unknown action~%") action)))))) 683 (else (leave (_ "~a: unknown action~%") action))))))
684 684