File: template_exe.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 (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
# Shell script to ease the launch of a Sight utility on linux.
#
# This exports the proper LD_LIBRARY_PATH, and forward arguments to the utility.

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

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

# Setup the directories
bindir="$me"
rootdir=`cd "$me/.." ; pwd`
depslibdir="$rootdir/lib"
libdir="$rootdir/@SIGHT_MODULE_LIB_PREFIX@"

# export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$depslibdir:$libdir:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

exec "$bindir/@LAUNCHER@" $@