diff options
author | marha <marha@users.sourceforge.net> | 2012-11-20 16:38:12 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-11-20 16:38:12 +0100 |
commit | 589f5feba1e7968b7318b02f4f2bdea81937f0e1 (patch) | |
tree | cb66bfd5efb59eb4b66cee9370cf30a136fc2df4 /xorg-server/xkeyboard-config/rules/bin/ml1_s.sh | |
parent | fc83ab987c84518c31793515c4f99a0df8ccd1cc (diff) | |
download | vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.gz vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.bz2 vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.zip |
Now the software can be compiled from inside a cygwin terminal
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 |