1
#!/bin/sh
2
3
4
dohelp() {
5
    echo
6
    echo Failed to set environment variables.
7
    echo The script needs to be sourced from within the Qt Jambi root directory...
8
    echo
9
    echo \> cd JAMBIDIR
10
    echo \> source set_qtjambi_env.sh
11
    echo
12
}
13
14
ROOT=$PWD
15
16
# check if we're called from the wrong directory...
17
CLASSES_JAR=$(ls qtjambi-4*.jar)
18
if [ -z $CLASSES_JAR ]; then
19
    echo "tullE"
20
    dohelp
21
else
22
    VERSION=${CLASSES_JAR:8:8}
23
    PLATFORM_JAR=$(ls qtjambi-*gcc*.jar)
24
    EXAMPLES_JAR=$(ls qtjambi-examples-*.jar)
25
26
    export CLASSPATH=$PWD/$CLASSES_JAR:$PWD/$EXAMPLES_JAR:$PWD/$PLATFORM_JAR:$CLASSPATH
27
28
    echo Setting Environment for Qt Jambi $VERSION...
29
fi