File: pyrogen.in

package info (click to toggle)
coot 1.1.18%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 219,960 kB
  • sloc: cpp: 495,934; python: 35,043; ansic: 26,143; lisp: 22,768; sh: 13,186; makefile: 2,746; awk: 441; xml: 245; csh: 14
file content (33 lines) | stat: -rwxr-xr-x 832 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
#!/bin/bash

current_exe_dir=$(dirname $0)

# Does readlink -f work on MacOSX? Possibly not. I don't know what to
# do about it yet.

systype=$(uname)

if [ $systype = Darwin ] ; then 
   prfx=$(dirname "$current_exe_dir")
   if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ] ;  then
	DYLD_FALLBACK_LIBRARY_PATH=$prfx/lib
   else 
	DYLD_FALLBACK_LIBRARY_PATH=$prfx/lib:${DYLD_FALLBACK_LIBRARY_PATH}
   fi
   export DYLD_FALLBACK_LIBRARY_PATH
else
   prfx=$(readlink -f $(dirname "$current_exe_dir"))
   export LD_LIBRARY_PATH=$prfx/lib
fi

# need to add rdkit dlls (in lib)
if [[ "$systype" == MINGW* ]] ; then
   PATH=$prfx/lib:$PATH
fi

# no point in --check-libs - we are running python and dynamically loading the libs

# echo DYLD_FALLBACK_LIBRARY_PATH $DYLD_FALLBACK_LIBRARY_PATH
export PATH=$prfx/bin:$PATH

@PYTHON@ -m pyrogen "${@}"