aboutsummaryrefslogtreecommitdiff
path: root/biology/emboss/files/emboss-shell.in
blob: 525b04bcc3972dfc0eb2457af2e727d2bff7ae07 (plain) (blame)
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
#!/bin/sh -e

emboss_bin=%%PREFIX%%/bin
cat << EOM

Prefixing \$PATH with $emboss_bin.

Emboss contains commands that conflict with other tools, including at least
"charge", "cons", "garnier", "prophet", and "tcode".

The other commands with these names may serve entirely different functions
and will not be accessible while running this shell unless you refer to them
by their absolute path name (e.g. %%LOCALBASE%%/bin/garnier), which is not
portable, BTW, so don't hard-code such paths into your scripts.

Type "exit" or "Ctrl+D" to return to your normal shell.

EOM

export PATH=${emboss_bin}:$PATH

# Invoke the user's chosen shell
if echo $SHELL | grep -q '/t?csh'; then
    args='-f'
fi
exec $SHELL $args