File: runtransformixlinux

package info (click to toggle)
elastix 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,480 kB
  • sloc: cpp: 68,403; lisp: 4,118; python: 1,013; xml: 182; sh: 177; makefile: 33
file content (34 lines) | stat: -rwxr-xr-x 783 bytes parent folder | download | duplicates (6)
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
#!/bin/bash
#
# runtransformixlinux
#
# Script to run transformix on linux when the
# libANNlib.so cannot be found.
#
# Usage:
#
#   runtransformixlinux ...
#
# with ... referring to all arguments you normally
# would use for transformix.
#


# find transformix executable that is used
whichtransformix=`which transformix`

# extract the path to transformix
#
# ${string%substring}
# strips shortest match of $substring from back of $string.
transformixpath=${whichtransformix%/transformix}

# add the path temporarily to the LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$transformixpath:$LD_LIBRARY_PATH

# run transformix with the supplied command-line arguments
transformix $*

# after exitting this script, the LD_LIBRARY_PATH is
# automatically as it was before running this script.