wrapper-script.sh 212 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#! /bin/bash

case "$1" in
  *.exe)
    fccwd=`pwd`
    cd $(IFS=:;for i in $PATH; do echo $i|grep mingw> /dev/null; [ $? -eq 0 ] && echo $i; done)
    /usr/bin/env wine $fccwd/$@
    ;;
  *)
    $@
    ;;
esac