File: template.sh.in

package info (click to toggle)
sight 25.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,180 kB
  • sloc: cpp: 289,476; xml: 17,257; ansic: 9,878; python: 1,379; sh: 144; makefile: 33
file content (42 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/bash
# Shell script to ease the launch of a Sight application on linux.
#
# This exports the proper LD_LIBRARY_PATH, and append the profile.xml of the application

# Don't modify this file, it is automatically generated by CMake.

me=$(cd "$(dirname "$0")"; pwd)

# Setup the directories
bindir="@LAUNCHER_PATH@"
rootdir=$(cd "$me/.." ; pwd)
libdir="$rootdir/lib/sight"
sdkdir="@Sight_LIBRARY_DIR@"
extdir="@Sight_EXTRA_LIBRARY_DIR@"
moduledir="$rootdir/@SIGHT_MODULE_RC_PREFIX@"
moduleopt="@SIGHT_EXTRA_MODULES_OPT@"
sightdepslibs="@SIGHT_EXTERNAL_LIBRARIES_LIB_PATH@"

# compute LD_LIBRARY_PATH
if [ ! -z "${libdir}" -a "${libdir}" != " " ]; then
    LD_LIBRARY_PATH=${libdir}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi

if [ ! -z "${sdkdir}" -a "${sdkdir}" != " " ]; then
    LD_LIBRARY_PATH=${sdkdir}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi

if [ ! -z "${extdir}" -a "${extdir}" != " " ]; then
    LD_LIBRARY_PATH=${extdir}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi

if [ ! -z "${sightdepslibs}" -a "${sightdepslibs}" != " " ]; then
    LD_LIBRARY_PATH=${sightdepslibs}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi

# export LD_LIBRARY_PATH
export LD_LIBRARY_PATH

# Use CMAKE Variable of fwlauncher and Profile.xml path
echo  "$bindir/@LAUNCHER@" \""$moduledir/@PROFILE_PATH@"\" $moduleopt
exec "$bindir/@LAUNCHER@" \""$moduledir/@PROFILE_PATH@"\" $moduleopt $@