aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/rules/bin/mln_s.sh
blob: 66794a4fcb6a4abca7bb922328f89d1258e9218c (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%