summaryrefslogtreecommitdiff
path: root/dist/xkeyboard-config/rules/compat/ml1_s.sh
blob: 327de2d9c3aba3a857d827f212965c18bf8b981f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

INDIR=`dirname $0`
OUTFILE=base.ml1_s.part

> $OUTFILE

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

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