root/gs2-extensions/music-ir-src/trunk/CASCADE-MAKE.sh @ 28380

Revision 28380, 1.2 KB (checked in by davidb, 7 years ago)

The 'lib' file inside 'jSongMiner' also needs to be copeid over

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3source cascade-make/lib/cascade-lib.bash GEXT_MUSICIR . $*
4
5if [ -z "$JAVA_HOME" ] ; then
6  echo "Testing for Java compiler ..."
7  javac -version
8  if [ $? != "0" ] ; then
9    echo "Failed to find 'javac'"
10    exit -1
11  fi
12fi
13
14if [ ! -e $GEXT_MUSICIR_INSTALLED ] ; then
15  echo "Creating $GEXT_MUSICIR_INSTALLED for installed files"
16  mkdir $GEXT_MUSICIR_INSTALLED
17fi
18
19if [ ! -e "$GEXT_MUSICIR_LIBJAVA" ] ; then
20  echo "Creating $GEXT_MUSICIR_LIBJAVA for Java lib and jar files"
21  mkdir -p "$GEXT_MUSICIR_LIBJAVA"
22fi
23
24
25dirlist="build-srcpack"
26
27for d in $dirlist ; do
28  echo "Running $d/CASCADE-MAKE.sh $*"
29
30  (cd $d ; ./CASCADE-MAKE.sh $*)
31
32  if [ $? != 0 ] ; then
33    echo "Error encountered running $d/CASCADE-MAKE.sh"
34    exit 1
35  fi
36done
37
38
39if [ $install = "1" ] ; then
40
41  if [ ! -f lib/java/SampleJAudioBatchFile.xml.in ] ; then
42    echo "Installing SampleJAudioBatchFile.xml.in in lib/java"
43    /bin/cp SampleJAudioBatchFile.xml.in lib/java/.
44  fi
45
46
47  if [ ! -f lib/java/jSongMiner.jar ] ; then
48    echo "Installing jSongMiner.jar (and accompanying config file and lib directory) lib/java"
49    /bin/cp build-srcpack/packages/jSongMiner/* lib/java/.
50  fi
51
52
53  cat README.txt
54fi
Note: See TracBrowser for help on using the browser.