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