Received: from list by lists.gnu.org with archive (Exim 4.71) id 1b6tfU-0007XY-Fa for mharc-grub-devel@gnu.org; Sun, 29 May 2016 01:53:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6mST-0003Uz-Nr for grub-devel@gnu.org; Sat, 28 May 2016 18:11:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6mSP-0001Hf-FB for grub-devel@gnu.org; Sat, 28 May 2016 18:11:48 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:33735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6mSP-0001Hb-5B for grub-devel@gnu.org; Sat, 28 May 2016 18:11:45 -0400 Received: by mail-pf0-x244.google.com with SMTP id b124so17126565pfb.0 for ; Sat, 28 May 2016 15:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:date:subject; bh=KnBT5o+OftbjAvv20l/6DC9nNoUPbGqzmHEX49g+VxM=; b=wwCX8eGFbT0k4ghmfFua0tW4dh5tpPyvbqxjOXNL7Og9y8bXop3hcVEvvlJE9KUkwQ umV+RhgBvSPSxBWlKoVPOq5du5q5Dj5zkq9I1/MB5ugrpxtdjpPq+ld6uUhihi/9bMfd cvK+iTMGQgxp68G8U+9yM7sVOF6FCm7PDcMTMK0D2ZhfAMC5LApuLQuBV2PyOTlYOQPa cPWQavgddwa4Ebmxm2QExgVdkIYn1xQBlVUQ+lMX7PaKvbT0ZTbM6R2LK2JzL24aIkOt QjAHoC6v54pr5SmaC8J1hjgs3IXFxKr5zpWcUC7ISUwz/yKhQK51esfKpEJRqdIPQgRi t63A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:date:subject; bh=KnBT5o+OftbjAvv20l/6DC9nNoUPbGqzmHEX49g+VxM=; b=FYVeilFYleA8vLHoxTw6uNTXuM8rKSRCyo/NpQVNpWWV6hafny2TjSfUDCI4cWqQ7s 0tC9NdVeqwoBIf1L1zceMeNPTzZBlYGmzym9wCweKdHP6cxDf7C7ZrC+rl0bYE5MC1vB CAax/9YIas6uz2zuafWH/1p/g4wlzp3JNBCsoNoB+jYl0LUa5lo6CQgCEWKVwfRtx9Wu tl+qlbBCEvALPsqSP5V+Ee0OiAijooy8M1vVyM8t90jtyO9VruauxwxShhrtJ8mTq3cd QjmOVCsLotxPEuv1H/8/njAWHzxP4m/DciVTdXpwRWLuAGbgp1bawJ/KrDDEGvWy1NDI uI2g== X-Gm-Message-State: ALyK8tKTdFAHfvaPumqUY3tVHawgUiouT1esQwQ2qvXqeQmI0Ra7tK6YBCBv7q+OO9144A== X-Received: by 10.98.65.92 with SMTP id o89mr32643414pfa.72.1464473504461; Sat, 28 May 2016 15:11:44 -0700 (PDT) Received: from localhost (27-32-189-129.static.tpgi.com.au. [27.32.189.129]) by smtp.gmail.com with ESMTPSA id b188sm21977698pfa.87.2016.05.28.15.11.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 May 2016 15:11:44 -0700 (PDT) Message-ID: <574a17a0.c534620a.9ba76.2890@mx.google.com> From: Andrew Worsley Date: Sat, 28 May 2016 21:53:54 +1000 Subject: [PATCH 2/2] Add --debug to set -x for a few grub commands X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::244 X-Mailman-Approved-At: Sun, 29 May 2016 01:53:43 -0400 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 22:11:51 -0000 --- 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 ."; 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