File: make-template.pl

package info (click to toggle)
console-data 2:1.12-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,388 kB
  • sloc: sh: 3,272; pascal: 472; makefile: 231; perl: 168
file content (20 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl


open (MAPLIST, $ARGV[0]) || die "Failed to open $ARGV[0]\n";

print "Template: $ARGV[0]/keymap\n";
print "Type: select\n";

$keymaps = "";

while (<MAPLIST>) {
	($langs,$name,$english) = split ;
	if ($keymaps eq "") { 
		$keymaps = $name;
	} else {
		$keymaps = join (', ', $keymaps, $name);
	}		
}

print "__Choices: $keymaps\n";