6
6
exec_prefix="@exec_prefix@"
9
grub_mklayout=${bindir}/`echo grub-mklayout | sed ${transform}`
11
ckbcomp "$@" | $grub_mklayout -o "$1".gkb
8
datarootdir="@datarootdir@"
10
if [ "x$pkgdatadir" = x ]; then
11
pkgdatadir="${datadir}/@PACKAGE@"
14
grub_mklayout="${bindir}/`echo grub-mklayout | sed ${transform}`"
18
export TEXTDOMAIN=@PACKAGE@
19
export TEXTDOMAINDIR="@localedir@"
21
. "${pkgdatadir}/grub-mkconfig_lib"
26
gettext_printf "Usage: %s -o OUTPUT CKBMAP_ARGUMENTS...\n" "$self"
27
gettext "Make GRUB keyboard layout file."; echo
29
print_option_help "-h, --help" "$(gettext "print this message and exit")"
30
print_option_help "-v, --version" "$(gettext "print the version information and exit")"
31
print_option_help "-o, --output=$(gettext FILE)" "$(gettext "save output in FILE [required]")"
33
gettext_printf "%s generates a keyboard layout for GRUB using ckbcomp\n" "$self"
35
gettext "Report bugs to <bug-grub@gnu.org>."; echo
42
if test $# -eq 0; then
43
gettext_printf "%s: option requires an argument -- \`%s'\n" "$0" "$opt" 1>&2
60
echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
63
output=`argument $option "$@"`; shift ;;
65
output=`echo "$option" | sed 's/--output=//'` ;;
67
ckbcomp_options="$ckbcomp_options $option";;
71
if [ "x${output}" = x ] ; then
72
gettext "output file must be specified" >&2
78
ckbcomp $ckbcomp_options | "$grub_mklayout" -o "${output}"