File: convertmap.pl

package info (click to toggle)
bochs 2.3-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,116 kB
  • ctags: 16,927
  • sloc: cpp: 130,524; ansic: 18,822; sh: 7,922; makefile: 3,836; yacc: 1,056; asm: 463; perl: 381; lex: 280; csh: 3
file content (14 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
# little utility script that I used to convert key map files from
# the pre-March 11 format to the post-March 11 format.  It doesn't
# do anything smart with the ascii equivalents and modifiers, so ATM those must
# be added by hand.

while (<STDIN>)
{
  chop;
  s/^ *//;
  if (/^#/ || /^ *$/) { print "$_\n"; next;}
  ($key, $equals, $xksym) = split (/ +/);
  printf ("%-45s %-10s %s\n", $key, 'none', "XK_$xksym");
}