diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-08-28 21:16:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-08-28 21:16:32 +0000 |
commit | ff872004f6d5f202a6a8cd418bad3b2458d2ed66 (patch) | |
tree | 984a3ea576f9090b2aad069550b65a6595c04d4c /perl-install/share/keymaps_generate | |
parent | c047aee8e84b723f6910defab8b0de8063502490 (diff) | |
download | drakx-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar drakx-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.gz drakx-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.bz2 drakx-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.xz drakx-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.zip |
no_comment
Diffstat (limited to 'perl-install/share/keymaps_generate')
-rwxr-xr-x | perl-install/share/keymaps_generate | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/share/keymaps_generate b/perl-install/share/keymaps_generate index 29fd576fb..a2c461fb6 100755 --- a/perl-install/share/keymaps_generate +++ b/perl-install/share/keymaps_generate @@ -3,15 +3,16 @@ use lib ".."; use keyboard; -system("rm -rf keymaps ; mkdir keymaps"); +my $dir = "keymaps/usr/share/keymaps"; +system("rm -rf keymaps ; mkdir -p keymaps/usr/share/keymaps"); foreach (keyboard::xmodmaps()) { my $kmap = keyboard::keyboard2kmap($_); - if (system("./kmap2bkmap $kmap > keymaps/$kmap.bkmap 2>/dev/null") != 0) { + if (system("./kmap2bkmap $kmap > $dir/$kmap.bkmap 2>/dev/null") != 0) { warn "unknown kmap $kmap\n"; - unlink "keymaps/$kmap.bkmap"; + unlink "$dir/$kmap.bkmap"; } } -system("tar cfI keymaps.tar.bz2 keymaps") == 0 or die; +system("tar cfI keymaps.tar.bz2 -C keymaps usr") == 0 or die; system("rm -rf keymaps"); |