diff options
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/bin/ml1_s.sh')
-rwxr-xr-x | xorg-server/xkeyboard-config/rules/bin/ml1_s.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh index b09459a5d..b2d222432 100755 --- a/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh +++ b/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh @@ -1,9 +1,18 @@ -@echo off +#!/bin/sh -set OUTFILE=base.ml1_s.part +INDIR=$1 +OUTFILE=base.ml1_s.part -if exist %OUTFILE% del %OUTFILE% +> $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% +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 -gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE% +awk '{ + printf " * %s(%s) = pc+%s(%s)\n", $1, $2, $3, $4; +}' < $INDIR/variantsMapping.lst >> $OUTFILE |