Debian Codegraph @

ligand/coot-identify-protein

raw
1 #!/bin/sh
2 # -*-shell-script-*-
3 # coot wrapper script
4 # Copyright 2004, 2005, 2006 Paul Emsley, University of York
5
6 #
7 current_exe_dir=$(dirname $0)
8 systype=$(uname)
9
10 if [ $systype = Darwin ] ; then
11 COOT_PREFIX="$(cd "$(dirname "$current_exe_dir")" 2>/dev/null && pwd)"
12 else
13 unlinked_exe=$(readlink -f $0)
14 unlinked_exe_dir=$(dirname $unlinked_exe)
15 COOT_PREFIX=$(dirname $unlinked_exe_dir)
16 fi
17
18 # echo COOT_PREFIX is $COOT_PREFIX
19
20 # ----------------------------------------------------------------------------
21 # ----------------------------------------------------------------------------
22 # If the COOT_PREFIX is correct, then these should not need modification
23 # i.e. nothing below here need be changed.
24 # ----------------------------------------------------------------------------
25 # ----------------------------------------------------------------------------
26 #
27 prefix=$COOT_PREFIX
28 PATH=$COOT_PREFIX/bin:$PATH
29
30 SYMINFO=$COOT_PREFIX/share/coot/syminfo.lib
31 # COOT_REFMAC_LIB_DIR=$COOT_PREFIX/share/coot/lib
32 COOT_DATA_DIR=$COOT_PREFIX/share/coot
33
34 # echo GUILE_LOAD_PATH is now $GUILE_LOAD_PATH
35
36 systype=`uname`
37
38 if [ $systype = Linux ] ; then
39 if [ -z "$LD_LIBRARY_PATH" ] ; then
40 LD_LIBRARY_PATH=$COOT_PREFIX/lib
41 else
42 LD_LIBRARY_PATH=$COOT_PREFIX/lib:${LD_LIBRARY_PATH}
43 fi
44 fi
45
46 # some (Intel, I supose) Mac users may need to change
47 # DYLD_LIBRARY_PATH to DYLD_FALLBACK_LIBRARY_PATH, if running into
48 # problems with Framwork jpeg libraries (don't forget the export
49 # at the end too).
50 #
51 if [ $systype = Darwin ] ; then
52 if [ -z "$DYLD_LIBRARY_PATH" ] ; then
53 DYLD_LIBRARY_PATH=$COOT_PREFIX/lib
54 else
55 DYLD_LIBRARY_PATH=$COOT_PREFIX/lib:${DYLD_LIBRARY_PATH}
56 fi
57 fi
58
59
60 export SYMINFO
61 export COOT_PREFIX
62 # export COOT_REFMAC_LIB_DIR
63 export COOT_DATA_DIR
64 export DYLD_LIBRARY_PATH
65 export LD_LIBRARY_PATH
66 export LD_LIBRARYN32_PATH
67
68 $COOT_PREFIX/libexec/coot-identify-protein-bin "$@"
69