!/Bin/Sh # Quick and Dirty Script to Download and Install Various

!/Bin/Sh # Quick and Dirty Script to Download and Install Various

#!/bin/sh # Quick and dirty script to download and install various # redistributable runtime libraries # # Current maintainers: Austin English, Dan Kegel # Copyright 2007, 2008, 2009, 2010 Google (Dan Kegel, [email protected]) # Copyright 2008, 2009, 2010 Austin English ([email protected]) # License: LGPL (for compatibility with winehq) # Thanks to Detlef Riekenberg for lots of updates # Thanks to Saulius Krasuckas for corrections and suggestions # Thanks to Erik Inge Bolsø for several patches # Thanks to Hugh Perkins for the directplay patch # Please report problems at http://code.google.com/p/winezeug/issues # See also http://wiki.winehq.org/winetricks # # Note to contributors: please avoid gnu extensions in this shell script, # as it has to run on MacOSX and Solaris, too. A good book on the topic is # "Portable Shell Programming" by Bruce Blinn, ISBN: 0134514947 # Constants # Name of this version of winetricks (YYYYMMDD) VERSION=20110123 # Functions # Detect which sudo to use detect_sudo() { SUDO=sudo test "$GUI" = 1 return if test x"$DISPLAY" != x"" then if test x "`which gksudo 2>/dev/null`" then SUDO=gksudo elif test x "`which kdesudo 2>/dev/null`" then SUDO=kdesudo fi fi } # Detect which menu program to use # Thereafter, use $MENU rather than the literal program name # to avoid rpmbuild pulling all the alternate menu programs # as dependencies. (Favor for etersoft.) detect_menu() { # TODO: add 'dialog' MENU=xmessage if test x "`which zenity 2>/dev/null`" then MENU=zenity elif test x "`which kdialog 2>/dev/null`" then MENU=kdialog fi } w_warn() { echo "" echo "$@" echo "" test "$GUI" = 1 return 0 # For some reason, nulls were showing up in $@?!, causing truncated output i n zenity msg="`echo $@ tr '\000' ' '`" case $MENU in *zenity) $MENU error title=Winetricks text="$msg" nowrap;; *kdialog) $MENU title Winetricks error "$msg" ;; *xmessage) $MENU title Winetricks center " Error: $msg " ;; esac } w_die() { w_warn "$@" exit 1 } # Abort if user doesn't own the given directory (or its parent, if it doesn't ex ist yet) die_if_user_not_dirowner() { if test d "$1" then checkdir="$1" else # fixme: quoting problem? checkdir=`dirname "$1"` fi nuser=`id u` nowner=`ls l n d L "$checkdir" awk '{print $3}'` if test x$nuser != x$nowner then w_die "You (`id un`) don't own $checkdir. Don't run winetricks as anoth er user!" fi } # usage() { set +x # WARNING: do not use single quote in any package description; that breaks t he gui menu. echo "Usage: $0 [options] package [package] ..." echo "This script can help you prepare your system for Windows applications" echo "that mistakenly assume all users' systems have all the needed" echo "redistributable runtime libraries or fonts." echo "Some options require the Linux 'cabextract' program." echo "" echo "Options:" echo " q quiet. You must have already agreed to the EULAs." echo " v verbose" echo " V display Version" echo "Packages:" echo " 7zip 7zip file archiver" echo " adobeair Adobe AIR runtime" echo " amstream MS amstream.dll" echo " art2kmin MS Access 2007 runtime" echo " atmlib Adobe Type Manager. Needed for Adobe CS4" echo " autohotkey Autohotkey (open source gui scripting language)" echo " baekmuk Baekmuk Korean fonts" echo " cmake CMake, the crossplatform, opensource build system" echo " colorprofile Standard RGB color profile" echo " comctl32 MS common controls 5.80" echo " comctl32.ocx MS comctl32.ocx and mscomctl.ocx, comctl32 wrappers for VB6" echo " comdlg32.ocx MS comdlg32.ocx for VB6" echo " controlpad MS ActiveX Control Pad" echo " corefonts MS Arial, Courier, Times fonts" echo " crypt32 MS crypt32.dl" echo " cygwin Unix apps for Windows (needed by some build scripts)" echo " d3dx9 MS d3dx9_??.dll (from DirectX 9 user redistributable)" echo " d3dx9_26 MS d3dx9_26.dll" echo " d3dx9_28 MS d3dx9_28.dll" echo " d3dx9_31 MS d3dx9_31.dll" echo " d3dx9_35 MS d3dx9_35.dll" echo " d3dx9_36 MS d3dx9_36.dll" echo " d3dx9_42 MS d3dx9_42.dll" echo " d3dx10 MS d3dx10_??.dll (from DirectX user redistributable)" echo " d3dxof MS d3dxof.dll (from DirectX user redistributable)" echo " devenum MS devenum.dll (from DirectX 9 user redistributable)" echo " dinput8 MS dinput8.dll (from DirectX 9 user redistributable)" echo " dirac the Dirac directshow filter" echo " directmusic MS DirectMusic (from DirectX 9 user redistributable)" echo " directplay MS DirectPlay (from DirectX 9 user redistributable)" echo " directx9 MS DirectX 9 user redistributable (not recommended! use d3dx9 instead)" echo " directx9beta MS DirectX 9 user redistributable beta verb (not reco mmended! use d3dx9 instead)" echo " divx divx video codec" echo " dmsynth MS dmsynth.dll (midi sythesizer from DirectX 9 user red istributable)" echo " dotnet11 MS .NET 1.1 (requires Windows license, but does not che ck for one)" # Doesn't work yet, don't make it public # echo " dotnet11sdk MS .NET Framework SDK Version 1.1 (requires Windows li cense, but does not check for one; may not work yet)" echo " dotnet20 MS .NET 2.0 (requires Windows license, but does not che ck for one)" # Doesn't work yet, don't make it public # echo " dotnet20sdk MS .NET Framework SDK Version 2.0 (requires Windows li cense, but does not check for one, may not work yet)" # echo " dotnet20sp2 MS .NET 2.0 sp2 (broken in wine)" echo " dotnet30 MS .NET 3.0 (requires Windows license, but does not che ck for one, might not work yet)" echo " droid Droid fonts (on LCD, looks better with fontsmoothrgb)" echo " dsound MS dsound.dll (from DirectX 9 user redistributable)" echo " dxsdk_nov2006 DirectX Software Development Kit, November 2006 version " echo " eufonts Updated fonts for Romanian and Bulgarian" echo " fakechinese Creates aliases for Chinese fonts using WenQuanYi fonts " echo " fakejapanese Creates aliases for Japanese fonts using Takao fonts" echo " fakekorean Creates aliases for Korean fonts using Baekmuk fonts" echo " ffdshow ffdshow video codecs" echo " firefox Firefox web browser" echo " flash Adobe Flash Player ActiveX and firefox plugins" echo " fm20 MS Forms 2.0 Object Library" echo " fontfix Fix bad fonts which cause crash in some apps (e.g. .net )." echo " fontsmoothbgr Enables subpixel smoothing for BGR LCDs" echo " fontsmoothdisable Disables font smoothing" echo " fontsmoothgray Enables grayscale font smoothing" echo " fontsmoothrgb Enables subpixel smoothing for RGB LCDs" echo " gdiplus MS gdiplus.dll" echo " geckodbg The HTML rendering Engine (Mozilla), with debugging sym bols" echo " gecko The HTML rendering Engine (Mozilla)" echo " gfw MS Game For Windows Live (xlive.dll)" echo " glut The glut utility library" echo " hosts Adds empty C:\windows\system32\drivers\etc\{hosts,servi ces} files" echo " icodecs Intel Indeo codecs" echo " ie6 Microsoft Internet Explorer 6.0" echo " ie7 Microsoft Internet Explorer 7.0" echo " ie8 Microsoft Internet Explorer 8.0" echo " jet40 MS Jet 4.0 Service Pack 8" echo " kde KDE for Windows installer" echo " l3codecx MPEG Layer3 Audio Codec for Microsoft DirectShow" echo " liberation Red Hat Liberation fonts (Sans, Serif, Mono)" echo " lucida MS Lucida Console font" echo " mdac25 MS MDAC 2.5: Microsoft ODBC drivers, etc." echo " mdac27 MS MDAC 2.7" echo " mdac28 MS MDAC 2.8" echo " mfc40 MS mfc40 (Microsoft Foundation Classes from Visual C++ 4)" echo " mfc42 MS mfc42 (same as vcrun6 below)" echo " mingwgdb GDB for MinGW" echo " mingw Minimalist GNU for Windows, including GCC for Windows!" echo " mono26 mono2.6" echo " mono28 mono2.8" echo " mozillabuild Mozilla build environment" echo " mpc Media Player Classic" echo " mshflxgd MS Hierarchical FlexGrid Control" echo " msi2 MS Windows Installer 2.0" echo " msls31 MS Line Services 3.1 (needed by native riched?)" echo " msmask MS Masked Edit Control" echo " mspaint MS Paint (gotta draw stick figures somehow...)" echo " msscript MS Windows Script Control" echo " msxml3 MS XML Core Services 3.0" echo " msxml4 MS XML Core Services 4.0" echo " msxml6 MS XML Core Services 6.0" echo " ogg ogg filters/codecs: flac, theora, speex, vorbis, schroe dinger" echo " ole2 MS 16 bit OLE" echo " opensymbol OpenSymbol fonts from OpenOffice.org (replacement for W ingdings)" echo " openwatcom Open Watcom C/C++ compiler (can compile win16 code!)" echo " pdh MS pdh.dll (Performance Data Helper)" echo " physx NVIDIA/AGEIA PhysX runtime" echo " psdk2003 MS Platform SDK 2003" echo " psdkvista MS Vista SDK (does not install yet)" echo " psdkwin7 MS Windows 7 SDK (installing just headers and c++ compi ler works)" echo " python26 Python 2.6.2 (and pywin32)" echo " pythoncomtypes Python 0.6.11 comtypes package" echo " quartz quartz.dll (from Directx 9 user redistributable)" echo " quicktime72 Apple Quicktime 7.2" echo " quicktime76 Apple Quicktime 7.6" echo " riched20 MS RichEdit Control, riched20 and riched32" echo " riched30 MS RichEdit Control, riched30" echo " richtx32 MS Rich TextBox Control 6.0" echo " safari Apple Safari web browser" echo " secur32 MS secur32" echo " shockwave Adobe Shockwave Player" echo " steam Steam Client App from Valve" echo " tahoma MS Tahoma font (not part of corefonts)" echo " takao Takao Japanese fonts" echo " unifont Unifont alternative to Arial Unicode MS" echo " usp10 MS usp10.dll (Uniscribe)" echo " utorrent uTorrent" echo " vb2run MS Visual Basic 2 runtime" echo " vb3run MS Visual Basic 3 runtime" echo " vb4run MS Visual Basic 4 runtime" echo " vb5run MS Visual Basic 5 runtime" echo " vb6run MS Visual Basic 6 Service Pack 6 runtime" echo " vc2005express MS Visual C++ 2005 Express" echo " vc2005expresssp1 MS Visual C++ 2005 Express SP1 (does not work

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    99 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us