aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/rules/bin/mln_s.sh
blob: 15e0629be7411281d5578a9c16b6c4f86a2f4395 (plain)
1
2
3
4
5
6
7
8
9
10
@echo off
set variant=%1

set OUTFILE=base.ml%variant%_s.part

if exist %OUTFILE% del %OUTFILE%

echo "{  if (index($2, """(""") == 0) {    printf """  *		%%s		=	+%%s%%%%(v[%variant%]):%variant%\n""", $1, $2;  } else {    printf """  *		%%s		=	+%%s:%variant%\n""", $1, $2;  }}" < layoutsMapping.lst >> %OUTFILE%

gawk "{  printf """  *		%%s(%%s)	=	+%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE%