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