~bcbc/wubi/lp-862003-plus3more

« back to all changes in this revision

Viewing changes to tools/check_wine

  • Committer: Agostino Russo
  • Date: 2008-08-17 11:53:34 UTC
  • Revision ID: agostino.russo@gmail.com-20080817115334-6gka1ih01naxbs8b
* Revised tool scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
pythonurl="http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi"
 
4
pywinurl="http://downloads.sourceforge.net/pywin32/pywin32-212.win32-py2.5.exe"
 
5
upxurl="http://upx.sourceforge.net/download/upx303w.zip"
 
6
 
 
7
root="$(cd ${0%/*}/../;pwd)"
 
8
export WINEPREFIX="$root"/wine
 
9
toolsdir="$root/tools"
 
10
 
 
11
if [ ! -x /usr/bin/wine ]; then
 
12
    echo "Could not find wine, please install it"
 
13
    exit 1
 
14
fi
 
15
 
 
16
install_upx(){
 
17
        echo "Installing upx..."
 
18
        wget -P /tmp "$upxurl"
 
19
        fname="/tmp/${upxurl##*/}"
 
20
        unzip "$fname" -d /tmp
 
21
        cp "${fname%.*}/upx.exe" "$root/wine/drive_c/windows/upx.exe"
 
22
}
 
23
 
 
24
install_wine(){
 
25
        echo "Creating wine folder..."
 
26
        #wineprefixcreate --prefix "$WINEPREFIX"
 
27
}
 
28
 
 
29
install_python(){
 
30
        wget -P /tmp "$pythonurl"
 
31
    wine msiexec /i /tmp/${pythonurl##*/} /qb /ADDLOCAL=DefaultFeature /ALLUSERS=1
 
32
}
 
33
 
 
34
install_pywin(){
 
35
        echo "Installing pywin..."
 
36
        wget -P /tmp "$pywinurl"
 
37
    wine "/tmp/${pywinurl##*/}"
 
38
}
 
39
 
 
40
make_wine(){
 
41
        install_wine
 
42
        install_python
 
43
        #install_pywin
 
44
        install_upx
 
45
}
 
46
 
 
47
if [ ! -e "$root/wine" ]; then
 
48
        make_wine
 
49
fi