diff options
Diffstat (limited to 'xorg-server/xkbdata.src/rules/bin/ln_s.sh')
-rw-r--r-- | xorg-server/xkbdata.src/rules/bin/ln_s.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xorg-server/xkbdata.src/rules/bin/ln_s.sh b/xorg-server/xkbdata.src/rules/bin/ln_s.sh new file mode 100644 index 000000000..07ac2f087 --- /dev/null +++ b/xorg-server/xkbdata.src/rules/bin/ln_s.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +variant=$1 + +INDIR=$2 +OUTFILE=base.l${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 |