All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Worsley <amworsley@gmail.com>
Subject: [PATCH 2/2] Add --debug to set -x for a few grub commands
Date: Sat, 28 May 2016 21:53:54 +1000	[thread overview]
Message-ID: <574a17a0.c534620a.9ba76.2890@mx.google.com> (raw)

---
 util/grub-kbdcomp.in     | 2 ++
 util/grub-mkconfig.in    | 2 ++
 util/grub-reboot.in      | 2 ++
 util/grub-set-default.in | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/util/grub-kbdcomp.in b/util/grub-kbdcomp.in
index a15ec24..74a3ffd 100644
--- a/util/grub-kbdcomp.in
+++ b/util/grub-kbdcomp.in
@@ -27,6 +27,7 @@ usage () {
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
     print_option_help "-V, --version" "$(gettext "print the version information and exit")"
     print_option_help "-o, --output=$(gettext FILE)" "$(gettext "save output in FILE [required]")"
+    print_option_help "-d, --debug" "$(gettext "print shell commands as they are run")"
     echo
     gettext_printf "%s generates a keyboard layout for GRUB using ckbcomp\n" "$self"
     echo
@@ -61,6 +62,7 @@ do
 	output=`argument $option "$@"`; shift ;;
     --output=*)
 	output=`echo "$option" | sed 's/--output=//'` ;;
+        -d | --debug) set -x ;;
     *)
 	ckbcomp_options="$ckbcomp_options $option";;
     esac
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
index f8496d2..2ce73a5 100644
--- a/util/grub-mkconfig.in
+++ b/util/grub-mkconfig.in
@@ -60,6 +60,7 @@ usage () {
     print_option_help "-o, --output=$(gettext FILE)" "$(gettext "output generated config to FILE [default=stdout]")"
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
     print_option_help "-v, --version" "$(gettext "print the version information and exit")"
+    print_option_help "-d, --debug" "$(gettext "print shell commands as they are run")"
     echo
     gettext "Report bugs to <bug-grub@gnu.org>."; echo
 }
@@ -88,6 +89,7 @@ do
     -V | --version)
 	echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
 	exit 0 ;;
+    -d | --debug) set -x ;;
     -o | --output)
 	grub_cfg=`argument $option "$@"`; shift;;
     --output=*)
diff --git a/util/grub-reboot.in b/util/grub-reboot.in
index 4d4f757..c8fa19c 100644
--- a/util/grub-reboot.in
+++ b/util/grub-reboot.in
@@ -48,6 +48,7 @@ usage () {
     gettext "Set the default boot menu entry for GRUB, for the next boot only."; echo
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
     print_option_help "-V, --version" "$(gettext "print the version information and exit")"
+    print_option_help "-d, --debug" "$(gettext "print shell commands as they are run")"
     dirmsg="$(gettext_printf "expect GRUB images under the directory DIR/%s instead of the %s directory" "@grubdirname@" "$grubdir")"
     print_option_help "--boot-directory=$(gettext "DIR")" "$dirmsg"
     echo
@@ -84,6 +85,7 @@ do
     -V | --version)
 	echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
 	exit 0 ;;
+    -d | --debug) set -x ;;
 
 # Accept for compatibility
     --root-directory)
diff --git a/util/grub-set-default.in b/util/grub-set-default.in
index 6036f81..ebc3ae9 100644
--- a/util/grub-set-default.in
+++ b/util/grub-set-default.in
@@ -50,6 +50,7 @@ usage () {
     echo
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
     print_option_help "-V, --version" "$(gettext "print the version information and exit")"
+    print_option_help "-d, --debug" "$(gettext "print shell commands as they are run")"
     dirmsg="$(gettext_printf "expect GRUB images under the directory DIR/%s instead of the %s directory" "@grubdirname@" "$grubdir")"
     print_option_help "--boot-directory=$(gettext "DIR")" "$dirmsg"
     echo
@@ -82,6 +83,7 @@ do
     -V | --version)
 	echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
 	exit 0 ;;
+    -d | --debug) set -x ;;
 
 # Accept for compatibility
     --root-directory)
-- 
2.1.4



             reply	other threads:[~2016-05-29  5:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-28 11:53 Andrew Worsley [this message]
2016-05-29  6:34 ` [PATCH 2/2] Add --debug to set -x for a few grub commands Vladimir 'phcoder' Serbinenko
2016-05-29 10:13   ` Andrew Worsley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=574a17a0.c534620a.9ba76.2890@mx.google.com \
    --to=amworsley@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.