aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/bin/ml1_s.bat')
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1_s.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat b/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat
new file mode 100755
index 000000000..b09459a5d
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat
@@ -0,0 +1,9 @@
+@echo off
+
+set OUTFILE=base.ml1_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ if (index($2, """(""") == 0) { printf """ * %%s = pc+%%s%%%%(v[1])\n""", $1, $2; } else { printf """ * %%s = pc+%%s\n""", $1, $2; }}" < layoutsMapping.lst >> %OUTFILE%
+
+gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%