summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/dot
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-04-22 05:02:34 +0000
committerdteske <dteske@FreeBSD.org>2013-04-22 05:02:34 +0000
commit6089bf07c71a6fd15cb36b50f7801a4b09037460 (patch)
tree30a8b20faa65aa281c83e178629b4b01903d9fef /usr.sbin/bsdconfig/dot
parent78339bf7f3a0cd62b1bcf122e6ca71e724ee1df9 (diff)
downloadFreeBSD-src-6089bf07c71a6fd15cb36b50f7801a4b09037460.zip
FreeBSD-src-6089bf07c71a6fd15cb36b50f7801a4b09037460.tar.gz
Add new flags `-d' (sets debug=1) and `-D file' (sets debugFile) and
improve debugging initialization. Also fixup USAGE statements while we're here. Also, change initialization of main program to _not_ change working directory, allowing the debugFile to be relative without confusion.
Diffstat (limited to 'usr.sbin/bsdconfig/dot')
-rw-r--r--usr.sbin/bsdconfig/dot/USAGE4
-rwxr-xr-xusr.sbin/bsdconfig/dot/dot7
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/bsdconfig/dot/USAGE b/usr.sbin/bsdconfig/dot/USAGE
index c1c0dc3..a1ccf73 100644
--- a/usr.sbin/bsdconfig/dot/USAGE
+++ b/usr.sbin/bsdconfig/dot/USAGE
@@ -1,4 +1,4 @@
-# Copyright (c) 2012 Devin Teske
+# Copyright (c) 2012-2013 Devin Teske
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
Usage: bsdconfig @PROGRAM_NAME@ [OPTIONS]
OPTIONS:
- -h Print usage statement and exit.
+ -h Print this usage statement and exit.
-c Don't show command-line shortcut relationships.
-d Don't show the date in the graph label.
-i Don't show include relationships.
diff --git a/usr.sbin/bsdconfig/dot/dot b/usr.sbin/bsdconfig/dot/dot
index 2cc659c..cbe9ad5 100755
--- a/usr.sbin/bsdconfig/dot/dot
+++ b/usr.sbin/bsdconfig/dot/dot
@@ -1,6 +1,6 @@
#!/bin/sh
#-
-# Copyright (c) 2012 Devin Teske
+# Copyright (c) 2012-2013 Devin Teske
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,6 +28,11 @@
#
############################################################ INCLUDES
+# Prevent common.subr from auto initializing debugging (this is not an inter-
+# active utility that requires debugging; also `-d' has been repurposed).
+#
+DEBUG_SELF_INITIALIZE=NO
+
BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." "$0"
OpenPOWER on IntegriCloud