#!/bin/bash export LauncherVer="3.30" # Configuration ######################################################### # Vars export CompileRootDir="$HOME/.cvswinex/cvswinex" export ErrorLogFile="" export ConfigurePrefix="$HOME/.cvswinex/lib" export ConfigureOptions="--enable-opengl --with-x --enable-pthreads" export AlwaysRecompile="0" export ScriptName="winex" export ConfigDirName=".winex" #export $(grep ^CFLAGS /etc/make.conf) export GetWineXLicense="http://www.transgaming.com/license.php?source=1" export StripBinaries="1" # change to 1 to strip binaries. Disables debugging tho export PackSource="1" export CVSPasswordGuess="cvs" export CVSCheckOutDir="winex" export OldCVSCheckOutDir="wine" export CVSoptions="-d :pserver:cvs@cvs.transgaming.org:/cvsroot -z 3 co" #export DisableCVSrootCheck="1" # use if CVSoptions CVSroot has a space in it export WineExecName="wine" export ShowTips="0" #User install export UserOnlyInstall="1" # Helperscript stuff ... do not edit ######################################################### if test "$1" = "proxy" then echo "Enter proxy (eg: proxy.pandora.be:8080):" read http_proxy echo "$http_proxy" > $HOME/.GetWineXproxy && echo "info stored ..." exit fi http_proxy=`cat $HOME/.GetWineXproxy 2>/dev/null` test -n "$http_proxy" && export http_proxy Upgrade="0" if test "$1" = "upgrade" then echo "Upgrading Helper script ..." Upgrade="1" shift fi export GetWineXName=`basename $0` function CheckOK () { if test "$Upgrade" = "1" then if ! rm -f "$GetWineXFile" then echo -e "Could not remove $GetWineXFile\nAborting..." exit fi elif test -e "$GetWineXFile" then Test=`tail -n 2 "$GetWineXFile"|grep "#end"` if test -z "$Test" then echo "Helperscript incomplete, getting new" if ! rm -f "$GetWineXFile" then echo -e "Could not remove $GetWineXFile\nAborting..." exit fi fi fi } GetWineXFile=`which GetWineX 2>/dev/null` ;CheckOK if test -e "$GetWineXFile" then GetWineX $@ exit fi GetWineXFile="$HOME/.cvswinex/GetWineX" ;CheckOK if test -e $HOME/.cvswinex/GetWineX then $HOME/.cvswinex/GetWineX $@ exit fi GetWineXFile="./GetWineX" ;CheckOK if test -e ./GetWineX then ./GetWineX $@ else mkdir $HOME/.cvswinex/ >/dev/null 2>&1 cd $HOME/.cvswinex/ echo -e "\n\nGetting helper script ... please wait\n" if wget http://ting.homeunix.org/GetWineX then chmod +x GetWineX ./GetWineX $@ else echo -e "\n\nCouldn't download .. Try again, and/or contact ElmerFudd" echo "For manual download:" echo " Goto http://ting.homeunix.org/cvs_wine/changelog.html" echo " Download GetWineX, using the link around the top" echo -e " Put it in /.cvswinex/ and chmod +x\n" echo -e "FEATURE:" echo -e " If you are behind a proxy, try this:" echo -e " $GetWineXName proxy" echo -e " after proxy info is entered, just run again as normal.\n" rm -f GetWineX fi fi