Module Name:    src
Committed By:   apb
Date:           Sun Aug  9 17:08:53 UTC 2009

Modified Files:
        src/sbin/rcorder: rcorder-visualize.sh

Log Message:
Allow rcorder-visualise.sh to accept an optional set of file names on
the command line.  By default it uses /etc/rc.d/*, as before.  Sample
usage: /usr/src/rcorder-visualise.sh /usr/src/etc/rc.d/*.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/rcorder/rcorder-visualize.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/rcorder/rcorder-visualize.sh
diff -u src/sbin/rcorder/rcorder-visualize.sh:1.4 src/sbin/rcorder/rcorder-visualize.sh:1.5
--- src/sbin/rcorder/rcorder-visualize.sh:1.4	Wed Apr 15 23:03:34 2009
+++ src/sbin/rcorder/rcorder-visualize.sh	Sun Aug  9 17:08:53 2009
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: rcorder-visualize.sh,v 1.4 2009/04/15 23:03:34 joerg Exp $
+# $NetBSD: rcorder-visualize.sh,v 1.5 2009/08/09 17:08:53 apb Exp $
 #
 # Written by Joerg Sonnenberger.  You may freely use and redistribute
 # this script.
@@ -9,7 +9,7 @@
 #	sh rcorder-visualize | dot -T svg -o rcorder.svg
 # dot(1) can be found in graphics/graphviz in pkgsrc.
 
-rc_files=/etc/rc.d/*
+rc_files=${*:-/etc/rc.d/*}
 
 {
 echo ' digraph {'

Reply via email to