jump to navigation

Killer script to install WineX from CVS! December 23, 2006

Posted by oktyabr in games, hacking, linux.
trackback

Found this script at www.linuxhelp.net and thought I should copy it here to in case it gets lost! (I hate it when that happens!)

For those of you that have no idea what this is you should probably skip this post and read something else…

Still here? Ok then, but don’t say I didn’t warn you! wine is a… Windows “compatibility layer” (actually “WINE = Wine Is Not an Emulator”! Yeah, whatever!) WineX is a commercial, non-free version of wine specifically designed with running Windows GAMES as a priority. “cvs” stands for “Concurrent Versions System” and basically it’s a way that many developers can work on a project at the same time, online. What CVS access means to the rest of us is something akin to being including in a “beta test” I guess, in the Windoze world anyway… it’s a doorway to the latest, bleeding edge version of a software, for better or worse, that you can download and install on your computer.

NOTE: I am in no way responsible for what you do with the following information or any of the results there of! Use at your own risk!!!

Here is the script. Make a new text document somewhere, call it “winexcvs-installer” or something and copy/paste the following code *exactly* as it appears below. Then make the script executable (open a terminal and type in chmod a+x winexcvs-installer) and run it. Go get a beer or something because once you are through the first license agreement and stuff the rest of the script will keep your machine pretty busy for several minutes!

Everything below this line is the CODE:


#!/bin/bashexport LauncherVer=”3.30″# Configuration
########################################################## Vars
export CompileRootDir=”$HOME/temp/cvswinex”
export ErrorLogFile=””
export ConfigurePrefix=”/usr/lib/cvswinex”
export ConfigureOptions=”–enable-opengl –with-x –enable-pthreads”
export AlwaysRecompile=”1″
export ScriptName=”cvswinex”
export ConfigDirName=”.cvswinex”

export GetWineXLicense=”http://www.transgaming.com/license.php?source=1″

export StripBinaries=”0″ # 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=”1″

#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 $GetWineXFilenAborting…”
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 $GetWineXFilenAborting…”
exit
fi
fi
fi
}

GetWineXFile=`which GetWineX 2>/dev/null`;CheckOK
if test -e “$GetWineXFile”
then
GetWineX $@
exit
fi
GetWineXFile=”$HOME/bin/GetWineX”;CheckOK
if test -e $HOME/bin/GetWineX
then
$HOME/bin/GetWineX $@
exit
fi
GetWineXFile=”./GetWineX”;CheckOK
if test -e ./GetWineX
then
./GetWineX $@
else
mkdir $HOME/bin/ >/dev/null 2>&1
cd $HOME/bin/
echo -e “nnGetting helper script … please waitn”
if wget http://ting.homeunix.org/GetWineX
then
chmod +x GetWineX
./GetWineX $@
else
echo -e “nnCouldn’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 <home>/bin/ and chmod +xn”
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


Everything above that line right up there is the CODE! Don’t copy and paste the lines or anything after this last one!Have fun ;)More killer winex scripts here:http://ting.homeunix.org/cvs_wine/GetWineXscripts.html

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: