aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/rules/bin/mln_s.sh
blob: 4a615fe7d6f3fd3e1179f68082f681b2a12f22d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

variant=$1

INDIR=$2
OUTFILE=base.ml${variant}_s.part

> $OUTFILE

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

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