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

« back to all changes in this revision

Viewing changes to bash/POL_Command

  • 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:
 
1
#!/bin/bash
 
2
 
 
3
# Copyright (C) 2007-2010 PlayOnLinux Team
 
4
# Copyright (C) 2008 Pâris Quentin
 
5
 
 
6
# This program is free software; you can redistribute it and/or modify
 
7
# it under the terms of the GNU General Public License as published by
 
8
# the Free Software Foundation; either version 2 of the License, or
 
9
# (at your option) any later version.
 
10
 
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
14
# GNU General Public License for more details.
 
15
 
 
16
# You should have received a copy of the GNU General Public License along
 
17
# with this program; if not, write to the Free Software Foundation, Inc.,
 
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
 
19
 
 
20
# Permet d'ouvrir une fonction POL depuis un script Python
 
21
 
 
22
# Usage POL_Command [Raccourcis] [Commande]
 
23
# Example POL_Command "Internet Explorer 6" Set_OS winxp
 
24
[ "$PLAYONLINUX" = "" ] && exit 0
 
25
source "$PLAYONLINUX/lib/sources"
 
26
 
 
27
[ "$1" == "--init" ] && INIT="TRUE" && shift
 
28
 
 
29
[ "$INIT" = "TRUE" ] && POL_SetupWindow_Init
 
30
 
 
31
if [ "$1" = "--prefix" ]
 
32
then
 
33
        shift
 
34
        export PREFIXNAME="$1"
 
35
        export WINEPREFIX="$REPERTOIRE/wineprefix/$1"
 
36
else
 
37
        export WINEPREFIX="$(detect_wineprefix "$1")"
 
38
fi
 
39
export TITLE="$1"
 
40
shift
 
41
#[ "$WINEVERSION" = "" ] || Use_WineVersion $WINEVERSION
 
42
"$@"
 
43
 
 
44
if [ "$INIT" = "TRUE" ]
 
45
then
 
46
POL_SetupWindow_Close
 
47
fi
 
48
exit
 
 
b'\\ No newline at end of file'