xenocara/dist/xkeyboard-config/rules/bin/mln_s.sh
2011-01-10 14:25:56 +00:00

21 lines
412 B
Bash
Executable File

#!/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