diff options
Diffstat (limited to 'perl-install/install/share/keymaps_generate')
-rwxr-xr-x | perl-install/install/share/keymaps_generate | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perl-install/install/share/keymaps_generate b/perl-install/install/share/keymaps_generate new file mode 100755 index 000000000..0265502c9 --- /dev/null +++ b/perl-install/install/share/keymaps_generate @@ -0,0 +1,18 @@ +#!/usr/bin/perl + +use lib ".."; +use keyboard; + +my $dir = "keymaps/usr/share/keymaps"; +system("rm -rf keymaps ; mkdir -p keymaps/usr/share/keymaps"); + +foreach (keyboard::keyboards()) { + my $kmap = keyboard::keyboard2kmap($_); + if (system("./kmap2bkmap $kmap > $dir/$kmap.bkmap 2>/dev/null") != 0) { + warn "unknown kmap $kmap\n"; + unlink "$dir/$kmap.bkmap"; + } +} + +system("tar cfj keymaps.tar.bz2 -C keymaps usr") == 0 or die; +system("rm -rf keymaps"); |