File: wrap

package info (click to toggle)
libfiu 1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 2,633; python: 973; makefile: 599; sh: 309
file content (30 lines) | stat: -rwxr-xr-x 531 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
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

# Wrap the utilities (fiu-ctrl, fiu-ls, fiu-run) so that we can run them
# easily from within the development tree, agains the locally-built libraries.
#
# The first argument is the utility to run.

BASE="$(realpath `dirname ${0}`/../..)"

export LD_LIBRARY_PATH="$BASE/libfiu:$LD_LIBRARY_PATH"

case "$1" in
"fiu-ctrl")
	BIN=$BASE/utils/fiu-ctrl
	ARGS=
	;;
"fiu-ls")
	BIN=$BASE/utils/fiu-ls
	ARGS=
	;;
"fiu-run")
	BIN=$BASE/preload/run/fiu-run
	ARGS="-l $BASE/tests/utils/libs"
	;;
esac

shift

exec $BIN $ARGS "$@"