diff options
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh')
-rwxr-xr-x | xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh index 78119bcc7..1a5f40f25 100755 --- a/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh +++ b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh @@ -1,8 +1,12 @@ -@echo off -set variant=%1 +#!/bin/sh -set OUTFILE=base.ml%variant%v%variant%_s.part +variant=$1 -if exist %OUTFILE% del %OUTFILE% +INDIR=$2 +OUTFILE=base.ml${variant}v${variant}_s.part -gawk "{ printf """ * %%s %%s = +%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE% +> $OUTFILE + +awk '{ + printf " * %s %s = +%s(%s):'${variant}'\n", $1, $2, $3, $4; +}' < $INDIR/variantsMapping.lst >> $OUTFILE |