4 exec_prefix="@exec_prefix@"
6 datarootdir="@datarootdir@"
8 if [ "x$pkgdatadir" = x ]; then
9 pkgdatadir="${datadir}/@PACKAGE@"
12 grub_mklayout="${bindir}/@grub_mklayout@"
16 export TEXTDOMAIN=@PACKAGE@
17 export TEXTDOMAINDIR="@localedir@"
19 . "${pkgdatadir}/grub-mkconfig_lib"
24 gettext_printf "Usage: %s -o OUTPUT CKBMAP_ARGUMENTS...\n" "$self"
25 gettext "Make GRUB keyboard layout file."; echo
27 print_option_help "-h, --help" "$(gettext "print this message and exit")"
28 print_option_help "-V, --version" "$(gettext "print the version information and exit")"
29 print_option_help "-o, --output=$(gettext FILE)" "$(gettext "save output in FILE [required]")"
31 gettext_printf "%s generates a keyboard layout for GRUB using ckbcomp\n" "$self"
33 gettext "Report bugs to <bug-grub@gnu.org>."; echo
40 if test $# -eq 0; then
41 gettext_printf "%s: option requires an argument -- \`%s'\n" "$0" "$opt" 1>&2
58 echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
61 output=`argument $option "$@"`; shift ;;
63 output=`echo "$option" | sed 's/--output=//'` ;;
65 ckbcomp_options="$ckbcomp_options $option";;
69 if [ "x${output}" = x ] ; then
70 gettext "output file must be specified" >&2
76 ckbcomp $ckbcomp_options | "$grub_mklayout" -o "${output}"