~ubuntu-branches/debian/wheezy/playonlinux/wheezy

« back to all changes in this revision

Viewing changes to bash/install

  • Committer: Bazaar Package Importer
  • Author(s): Bertrand Marc
  • Date: 2011-09-17 11:14:44 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110917111444-b02ft5g75aljjkrp
Tags: 4.0.12-1
* New upstream release (Closes: #639558).
* Remove patches/license.diff, not necessary any more.
* debian/rules: remove permission fixing.
* debian/rules: add build-arch and build-indep.
* Migrate to dh_python2.
* debian/patches: disable update alert on new release
  (Closes: #639463).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# with this program; if not, write to the Free Software Foundation, Inc.,
18
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
19
19
 
20
 
if [ "$PLAYONLINUX" = "" ]
21
 
then
22
 
        exit 0
23
 
fi
24
 
 
 
20
[ "$PLAYONLINUX" = "" ] && exit 0
25
21
source "$PLAYONLINUX/lib/sources" 
26
22
 
27
 
if [ ! "$OFFLINE" == "1" ]
28
 
then
29
 
        menu=$($PYTHON "$PLAYONLINUX/python/install.py" | tail -n 1);
30
 
fi
31
 
if [ "$menu" = "ExecLiveInstall" -o "$OFFLINE" == "1" ]
32
 
then
33
 
        LNG_MAIN_INSTALL_LIVE=$(eval_gettext "Manual installation")
34
 
        LNG_MAIN_INSTALL_PKG=$(eval_gettext "Install a .pol package")
35
 
        LNG_APP_CHOOSE3=$(eval_gettext "Installation wizard")
36
 
        LNG_APP_CHOOSE=$(eval_gettext "Please choose a type of application to install.")
37
 
 
38
 
        LISTE="$LNG_MAIN_INSTALL_LIVE~$LNG_MAIN_INSTALL_PKG"    
39
 
        installbis=$(menu "$LNG_APP_CHOOSE" "$LISTE" "$LNG_APP_CHOOSE3" 1 2 1 "wizard.png" "~");
40
 
        if [ "$installbis" = "$LNG_MAIN_INSTALL_PKG" ]
41
 
        then
42
 
                bash "$PLAYONLINUX/playonlinux-pkg" -b
43
 
        fi
44
 
        if [ "$installbis" = "$LNG_MAIN_INSTALL_LIVE" ]
45
 
        then
46
 
                bash $PLAYONLINUX/bash/LiveInstall
47
 
        fi
 
23
menu="$1"
 
24
if [ "$menu" = "ExecLiveInstall" ]
 
25
then
 
26
        bash "$PLAYONLINUX/bash/manual_install"
48
27
        exit
49
28
fi
50
 
if [ "$?" != 0 ]
51
 
then
52
 
        exit    
53
 
fi
54
 
#check_network "playonlinux.com" --quiet
55
 
if [ $? == 0 ]
56
 
then
57
 
        if [ "$menu" = "about:conceptor" ]
 
29
 
 
30
if [ ! "$menu" = "" ]
 
31
then
 
32
        export TITLE="$menu"
 
33
        type="$(echo $menu | cut -d ':' -f1)"
 
34
        if [ "$type" = "get" ]
58
35
        then
59
 
                python "$PLAYONLINUX/python/sp.py"
 
36
                id=$(echo "$menu" | cut -d ":" -f2)
 
37
                rm "$REPERTOIRE/install"
 
38
                wget "$SITE/V4_data/repository/get_file_n.php?version=PlayOn$POL_OS-$VERSION&id=$id" -O "$REPERTOIRE/install" -q
 
39
                [ -e "$REPERTOIRE/install" ] && POL_Bash "$REPERTOIRE/install"
60
40
                exit
61
41
        fi
62
 
        if [ ! "$menu" = "" ]
63
 
        then
64
 
                type="$(echo $menu | cut -d ':' -f1)"
65
 
 
66
 
                if [ "$type" = "get" ]
67
 
                then
68
 
                        id=$(echo "$menu" | cut -d ":" -f2)
69
 
                
70
 
                        POL_SetupWindow_Init ""
71
 
                        POL_SetupWindow_free_presentation "Install a non-validated script" "PlayOnLinux is going to execute a non-validated script.\n\nThese scripts have not been checked by PlayOnLinux validators. Please ensure you know what you are doing !"
72
 
                        rm $REPERTOIRE/install
73
 
                        wget "$SITE/V3_data/repository/get_file_n.php?version=playonlinux-$VERSION&id=$id" -O $REPERTOIRE/install -q
74
 
                        POL_SetupWindow_licence "Here the source code of the script. Check it carrefully" "Non validated script" "$REPERTOIRE/install"
75
 
                        POL_SetupWindow_Close
76
 
 
77
 
                        
78
 
 
79
 
                        if [ -e "$REPERTOIRE/install" ]
80
 
                        then
81
 
                                bash $REPERTOIRE/install
82
 
                        fi
83
 
                        exit
84
 
                fi
85
 
                menu=${menu//" "/"%20"}
86
 
                rm $REPERTOIRE/install
87
 
                wget "$SITE/V3_data/repository/get_file.php?version=playonlinux-$VERSION&id=$menu" -O $REPERTOIRE/install -q
88
 
                if [ -e "$REPERTOIRE/install" ]
89
 
                then
90
 
                        export TITLE="$menu"
91
 
                        bash $REPERTOIRE/install
92
 
                fi
93
 
        fi
 
42
        menu=${menu//" "/"%20"}
 
43
        rm "$REPERTOIRE/install"
 
44
        wget "$SITE/V4_data/repository/get_file.php?version=playonlinux-$VERSION&id=$menu" -O "$REPERTOIRE/install" -q
 
45
        [ -e "$REPERTOIRE/install" ] && POL_Bash "$REPERTOIRE/install"
94
46
fi
95
47