What is advantage compared with running scripts with bash -x script name ?
Le dim. 29 mai 2016 07:54, Andrew Worsley <[email protected]> a écrit :
> ---
> 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 <[email protected]>."; 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
>
>
> _______________________________________________
> Grub-devel mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel