Patch for tools/wineshelllink

Simon Walton simonw2 at pacbell.net
Thu Dec 13 01:09:53 CST 2001


   This is against the 20011108 snapshot.

  wineshelllink assumes sh is bash. This is not true on FreeBSD
(and several other systems). This patch fixes a bashism; the result
will run on bourne shell and bash.

Simon
---------
*** tools/wineshelllink.old     Fri Mar 16 08:40:12 2001
--- tools/wineshelllink Wed Dec 12 22:23:19 2001
***************
*** 40,54 ****
  while [ $# -gt 0 ]
  do
    case "$1" in
!     (--desktop) mode="desktop"; shift 1 ;;
!     (--menu)    mode="menu"; shift 1 ;;
!     (--path)    path=$2; shift 2 ;;
!     (--link)    link=$2; shift 2 ;;
!     (--args)    args=$2; shift 2 ;;
!     (--icon)    icon=$2; shift 2 ;;
!     (--descr)   descr=$2; shift 2 ;;
!     (--workdir) workdir=$2; shift 2 ;;
!     (*) usage ;;
    esac
  done
  
--- 40,54 ----
  while [ $# -gt 0 ]
  do
    case "$1" in
!     --desktop) mode="desktop"; shift 1 ;;
!     --menu)    mode="menu"; shift 1 ;;
!     --path)    path=$2; shift 2 ;;
!     --link)    link=$2; shift 2 ;;
!     --args)    args=$2; shift 2 ;;
!     --icon)    icon=$2; shift 2 ;;
!     --descr)   descr=$2; shift 2 ;;
!     --workdir) workdir=$2; shift 2 ;;
!     *) usage ;;
    esac
  done




More information about the wine-patches mailing list