-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatisrti.in
executable file
·67 lines (56 loc) · 1.14 KB
/
matisrti.in
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=/home/dave/Work/Academia/phd/matis/src/.libs
version=@version@
export QUIET_RTI_SCRIPTS='t'
source /home/dave/Work/HLA/RTI-1.3NGv5/Linux-rh7.2-i386-gcc-3.0.2-opt-mt/config/rtienv.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RTI_HOME/$RTI_BUILD_TYPE/lib
usage()
{
cat <<EOF
Usage: matisrti [OPTION] [federate args..]
Known values for OPTION are:
--run execute federate with matis
--norun dont execute federate, display command only
--version output version information
--help display this help and exit
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
# a_preload="LD_PRELOAD=/usr/lib/libstdc++-libc6.1-1.so.2:$libdir/libMATISRTI.so.0"
a_preload="LD_PRELOAD=$libdir/libMATISRTI.so.0"
while test $# -gt 0; do
case "$1" in
--run)
shift
LD_PRELOAD=$libdir/libMATISRTI.so.0 $*
exit 1
;;
--norun)
shift
echo "$a_preload" $*
exit 1
;;
--egcshack)
shift
LD_PRELOAD=/usr/lib/libstdc++-libc6.1-1.so.2 $*
exit 1
;;
--help)
usage 0
;;
--version)
echo "matis @MATIS_VERSION@"
exit 0
;;
*)
usage 1 1>&2
exit 1
;;
esac
shift
done