diff options
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/bin/mln_s.sh')
-rw-r--r-- | xorg-server/xkeyboard-config/rules/bin/mln_s.sh | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/xorg-server/xkeyboard-config/rules/bin/mln_s.sh b/xorg-server/xkeyboard-config/rules/bin/mln_s.sh index 4a615fe7d..67fd8a06e 100644 --- a/xorg-server/xkeyboard-config/rules/bin/mln_s.sh +++ b/xorg-server/xkeyboard-config/rules/bin/mln_s.sh @@ -1,20 +1,20 @@ -#!/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
+#!/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 |