Patch for tools/wineshelllink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   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



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux