~ubuntu-branches/debian/wheezy/idjc/wheezy

« back to all changes in this revision

Viewing changes to idjc_

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 16:33:59 UTC
  • mfrom: (0.2.6)
  • Revision ID: package-import@ubuntu.com-20111203163359-dq5fy9i756jpoy29
Tags: 0.8.6-1
* New upstream release.
* debian/control:
  - Wrap and sort.
  - Build-depend on autopoint.
  - Drop autotools-dev, unnecessary.
* Drop the whole patch set, none of them is still needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
#   idjc(_): The program launcher shell script for IDJC
4
 
#   Copyright (C) 2005-2009 Stephen Fairchild
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
17
 
#   along with this program; if not, write to the Free Software
18
 
#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 
20
 
# These two are set by make
21
 
pyexecdir=
22
 
export pkgpyexecdir=
23
 
 
24
 
# Make JACK sound server start on demand
25
 
export JACK_START_SERVER="1"
26
 
# Make vorbiscomment and ogginfo use the UTF-8 character set
27
 
export CHARSET="UTF-8"
28
 
 
29
 
export jackd=`which jackd`
30
 
export vorbiscomment=`which vorbiscomment`
31
 
 
32
 
# Process the command line arguments turning them into environment variables
33
 
VERSION_ONLY="0"
34
 
SHOW_HELP="0"
35
 
APP_PROFILE="(unspecified)"
36
 
JACK_SERVER="default"
37
 
MICROPHONE=""
38
 
AUXILIARY=""
39
 
SERVERSTART=""
40
 
VOIPMODE="0"
41
 
EXTRA="0"
42
 
 
43
 
function showusage {
44
 
   echo "Usage: $0 [-vhe] [-p profile] [-j jackserver] [-m microphones] [-a aux inputs] [-s servers] [-t telephony mode]"
45
 
   echo "Try option -h for more info"
46
 
}
47
 
 
48
 
while getopts "vhep:j:m:a:s:t:" myoption
49
 
   do
50
 
      case $myoption in
51
 
         v)
52
 
            VERSION_ONLY="1"
53
 
            ;;
54
 
         h)
55
 
            SHOW_HELP="1"
56
 
            ;;
57
 
         p)
58
 
            APP_PROFILE="$OPTARG"
59
 
            ;;
60
 
         j)
61
 
            JACK_SERVER="$OPTARG"
62
 
            ;;
63
 
         m)
64
 
            MICROPHONE="$OPTARG"
65
 
            ;;
66
 
         a)
67
 
            AUXILIARY="$OPTARG"
68
 
            ;;
69
 
         s)
70
 
            SERVERSTART="$OPTARG"
71
 
            ;;
72
 
         t)
73
 
            VOIPMODE="$OPTARG"
74
 
            ;;
75
 
         e)
76
 
            EXTRA="1"
77
 
            ;;
78
 
         *)
79
 
            showusage
80
 
            exit 5
81
 
            ;; 
82
 
      esac
83
 
   done
84
 
 
85
 
export VERSION_ONLY SHOW_HELP APP_PROFILE JACK_SERVER MICROPHONE AUXILIARY SERVERSTART VOIPMODE EXTRA
86
 
 
87
 
python=
88
 
export python
89
 
which $python > /dev/null
90
 
if [ $? == "0" ] ; then
91
 
   ${python} -m idjcgui
92
 
else
93
 
   echo "Python interpreter not found.  IDJC can not be run without it"
94
 
fi