blob: e86da961a2951d838503dc5e6e42b028c5b4ec4c (
plain)
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
|
#!/bin/sh
# rasmol.sh
# RasMol Molecular Graphics
# Roger Sayle, August 1995
# Version 2.6
# script modified for linux
# John Lapeyre
#Wed, 12 Aug 1998 21:34:40 -0700
#
# Example Environment Variables
#
RASMOLPATH=/usr/lib/rasmol
export RASMOLPATH
RASMOL_VISUAL=8
if [ -e /usr/bin/X11/xwininfo ]; then
RASMOL_VISUAL=`xwininfo -root | perl -ne 'chomp;print if s|\s+Depth:\s+||'` ;
fi
if [ -e "/etc/rasmol/.rasmol.conf" ]; then
. /etc/rasmol/.rasmol.conf;
fi
if [ -e ~/.rasmol.conf ]; then
. ~/.rasmol.conf;
fi
case "$1" in
-8)
RASMOL_VISUAL=8
shift;;
-16)
RASMOL_VISUAL=16
shift;;
-24)
RASMOL_VISUAL=32
shift;;
-32)
RASMOL_VISUAL=32
shift;;
esac
#echo Using binary rasmol.$RASMOL_VISUAL
if [ $RASMOL_VISUAL == 24 ]; then
RASMOL_VISUAL=32;
fi
$RASMOLPATH/rasmol.$RASMOL_VISUAL $*
|