/[svn]/jsampler/trunk/scripts/fantasia
ViewVC logotype

Annotation of /jsampler/trunk/scripts/fantasia

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1786 - (hide annotations) (download)
Wed Oct 8 22:38:15 2008 UTC (15 years, 6 months ago) by iliev
File size: 1625 byte(s)
* Implemented option to launch the backend if it is not yet started
  (choose Edit/Preferences, then click the `Backend' tab)
* LSCP scripts can now be run by passing them to jsampler
  as command-line arguments
* The scripts in the `scripts' directory now pass the command-line
  arguments to the respective jsampler distribution
* ant: the default target is now build-fantasia
* bugfix: backend address was always set to 127.0.0.1 when adding
  backend to the backend list

1 iliev 912 #!/bin/sh
2     #
3     # JSampler - a java front-end for LinuxSampler
4     #
5 iliev 1786 # Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
6 iliev 912 #
7     # This file is part of JSampler.
8     #
9     # JSampler is free software; you can redistribute it and/or modify
10     # it under the terms of the GNU General Public License version 2
11     # as published by the Free Software Foundation.
12     #
13     # JSampler is distributed in the hope that it will be useful,
14     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     # GNU General Public License for more details.
17     #
18     # You should have received a copy of the GNU General Public License
19     # along with JSampler; if not, write to the Free Software
20     # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21     # MA 02111-1307 USA
22    
23    
24     # Set the JAVA_HOME variable to specify the java distribution to be used.
25     #JAVA_HOME=
26    
27 iliev 1567 FANTASIA=Fantasia-0.8a.jar
28 iliev 1143
29 iliev 1567 # If you want to run Fantasia-0.8a.jar from a different directory
30     # you must define FANTASIA_PATH to point to Fantasia-0.8a.jar location.
31 iliev 912 #FANTASIA_PATH=
32    
33     if [ -n "$JAVA_HOME" ] ; then
34     if [ -x "$JAVA_HOME/bin/java" ] ; then
35     JAVA="$JAVA_HOME/bin/java"
36     fi
37     fi
38    
39     if [ -z "$JAVA" ] ; then
40     if [ -x "`which java`" ] ; then
41     JAVA="`which java`"
42     fi
43     fi
44    
45     if [ -n "$JAVA" ] ; then
46 iliev 1445 if [ -n "$FANTASIA_PATH" ] ; then
47 iliev 1786 $JAVA -jar $FANTASIA_PATH/$FANTASIA $*
48 iliev 912 else
49 iliev 1786 $JAVA -jar $FANTASIA $*
50 iliev 912 fi
51     else
52     echo "Unable to find java! Please set JAVA_HOME to point to your JRE/JDK directory."
53     echo "Example:"
54 iliev 1143 echo "export JAVA_HOME=/opt/jdk1.6.0"
55 iliev 912 fi

  ViewVC Help
Powered by ViewVC