aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh')
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1v_s.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
index cec1334c0..084d4c0be 100755
--- a/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
@@ -1,7 +1,10 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.ml1v_s.part
+INDIR=$1
+OUTFILE=base.ml1v_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $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