~ubuntu-branches/ubuntu/trusty/qsampler/trusty

« back to all changes in this revision

Viewing changes to osx/linuxsampler.starter

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-12-10 21:07:40 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091210210740-ddqqq7xnv7p4n4fs
Tags: 0.2.2-1
* New upstream release.
* Repack the tarball to remove upstream's debian dir:
  - debian/rules: Use the get-orig-source target to retrieve an updated
    tarball.
  - Remove debian/README.Debian, we don't follow those instructions to make
    the package.
* Switch to debhelper 7.
* Replace dpatch system with quilt.
* Remove all old patches, now unnecessary.
* debian/patches/01-fix_desktop.patch:
  - Fix desktop file as per spec.
* debian/patches/02-pass_flags_to_make.patch:
  - Pass CFLAGS/CXXFLAGS to the compiler.
* Add debian/menu file.
* Also install 32x32px icon (in XPM format).
* debian/control:
  - Bump Standards.
  - Set Debian Multimedia Maintainers as Maintainer.
  - Add myself to Uploaders.
  - Replace versioned automake build-dependency with automake.
  - Build-depend on libx11-dev.
* debian/copyright:
  - Update copyiright periods.
  - Add a comment about the tarball repacking.
* Remove debian/qsampler.desktop, unnecessary.
* debian/docs: Don't install the AUTHORS file, information provided by the
  copyright file are enough.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#  linuxsampler.starter
 
3
#  In the binary distribution, this wrapper script is placed in the same
 
4
#  directory as qsampler.app. The "true" binary of linuxsampler is placed 
 
5
#  as bin/linuxsampler. This wrapper script creates the default instrument 
 
6
#  database if not present, starts the Jack server, launches the JackPilot 
 
7
#  application via AppleScript,
 
8
#  and finally invokes the "true" binary of linuxsampler.
 
9
#  1 Jan 2008 Toshi Nagata
 
10
#  4 Jan 2008 Redirect stderr of osascript to /dev/null to avoid misleading
 
11
#  error messages (Toshi Nagata)
 
12
 
 
13
#  Set up the "base" directory
 
14
COMNAME=`which "$0"`
 
15
DIRNAME=`dirname "$COMNAME"`
 
16
 
 
17
#  Create database if not present
 
18
if ! test -e $HOME/Library/linuxsampler/linuxsampler.db; then
 
19
    mkdir -p $HOME/Library/linuxsampler/plugins
 
20
    "$DIRNAME/bin/linuxsampler" --create-instruments-db $HOME/Library/linuxsampler/linuxsampler.db
 
21
fi
 
22
 
 
23
#  Start jackd
 
24
if test -e $HOME/.jackdrc; then
 
25
    #  Collect the options
 
26
    jackopt=`awk '/^-/ { x = x $0 } END { print x }' $HOME/.jackdrc`
 
27
else
 
28
    jackopt="-R -d coreaudio"
 
29
fi
 
30
/usr/local/bin/jackd $jackopt &  #  If already running, then it just exits
 
31
 
 
32
#  Start JackPilot
 
33
#  (Errors will be silently ignored)
 
34
osascript -e 'tell application "JackPilot" to activate' -e 'tell application "qsampler" to activate' 2>/dev/null &
 
35
 
 
36
#  Invoke linuxsampler
 
37
if test -e "$DIRNAME/bin/linuxsampler"; then
 
38
    exe="$DIRNAME/bin/linuxsampler"
 
39
else
 
40
    exe="$DIRNAME/linuxsampler"
 
41
fi
 
42
exec "$exe" $@