1 #!/bin/bash 2 dir="$(dirname "$0")/../mstools" 3 (cd "$dir"; ./download-mstools) 4 5 arch="$(uname -m)" 6 if test "$arch" == i386 || test "$arch" == i486 || test "$arch" == i586 || test "$arch" == i686 || test "$arch" == x86_64; then 7 emu="wine" 8 else 9 emu="qemu-i386 wine" 10 fi 11 exe="$dir/fxc.exe" 12 if test "$#" == 0 || test "$1" == "--help"; then 13 exec $emu "$exe" "/?" 14 else 15 exec $emu "$exe" "$@" 16 fi 17