7fd59977 |
1 | #!/bin/sh |
2 | |
7a53e886 |
3 | export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
9220e785 |
4 | if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi |
7a53e886 |
5 | cd $aSamplePath |
7fd59977 |
6 | |
7a53e886 |
7 | host=`uname -s` |
7fd59977 |
8 | STATION=$host |
9 | |
7a53e886 |
10 | RES_DIR="${aSamplePath}/res" |
11 | BIN_DIR="${aSamplePath}/${STATION}/bin" |
7fd59977 |
12 | |
13 | CSF_ResourcesDefaults="${RES_DIR}" |
14 | CSF_IEResourcesDefaults="${RES_DIR}" |
15 | |
7fd59977 |
16 | PATH="${BIN_DIR}:${PATH}" |
17 | |
7fd59977 |
18 | export CSF_IEResourcesDefaults CSF_ResourcesDefaults |
7a53e886 |
19 | export PATH |
7fd59977 |
20 | |
21 | if test ! -r "${BIN_DIR}/IESample"; then |
22 | echo "Executable \"${BIN_DIR}/IESample\" not found." |
23 | echo "Probably you don't compile the application. Execute \"make\"." |
24 | exit 1 |
25 | fi |
26 | |
27 | ${BIN_DIR}/IESample |