aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/rules/bin/ml1_s.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkbdata.src/rules/bin/ml1_s.sh')
-rw-r--r--xorg-server/xkbdata.src/rules/bin/ml1_s.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/xorg-server/xkbdata.src/rules/bin/ml1_s.sh b/xorg-server/xkbdata.src/rules/bin/ml1_s.sh
new file mode 100644
index 000000000..b2d222432
--- /dev/null
+++ b/xorg-server/xkbdata.src/rules/bin/ml1_s.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+INDIR=$1
+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/layoutsMapping.lst >> $OUTFILE
+
+awk '{
+ printf " * %s(%s) = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE