Signed-off-by: malathi <malathiramya@gmail.com>
[xorg/xkeyboard-config] / rules / bin / ln_s.sh
1 #!/bin/sh
2
3 variant=$1
4
5 INDIR=$2
6 OUTFILE=base.l${variant}_s.part
7
8 > $OUTFILE
9
10 awk '{ 
11   if (index($2, "(") == 0) {
12     printf "  %s                =       +%s%%(v['${variant}']):'${variant}'\n", $1, $2; 
13   } else {
14     printf "  %s                =       +%s:'${variant}'\n", $1, $2; 
15   }
16 }' < $INDIR/layoutsMapping.lst >> $OUTFILE
17
18 awk '{ 
19   printf "  %s(%s)      =       +%s(%s):'${variant}'\n", $1, $2, $3, $4; 
20 }' < $INDIR/variantsMapping.lst >> $OUTFILE