aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/rules/bin/ln_s.sh
blob: 78e557d8f4b943868b8e21e1f7ad5b542c196877 (plain)
1
2
3
4
5
6
7
8
9
10
@echo off
set variant=%1

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

if exist %OUTFILE% del %OUTFILE%

gawk "{   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%