freebsd-ports/biology/ucsc-userapps/files/ucsc-shell.in
Jason W. Bacon 6b63ef7436 biology/ucsc-userapps: Command line tools from the UCSC Genome Browser project
These are the command-line bioinformatics utilities associated with the UCSC
genome browser.  Care has been taken to install only the freely available
tools.  However, the license information at https://genome.ucsc.edu/license/
is not entirely clear and we may add non-free utilities in the future.

Contact UCSC if you are using this port for commercial purposes.
2021-04-25 12:18:38 -05:00

28 lines
752 B
Bash
Executable file

#!/bin/sh -e
ucsc_bin=%%PREFIX%%/userapps/bin
cat << EOM
Adding $ucsc_bin to \$PATH.
UCSC kent utils contains commands that conflict with other tools, including
at least "calc", "mktime", and "stringify".
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. /usr/local/bin/calc), 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=${ucsc_bin}:$PATH
# FIXME: Update shell prompts to include (ucsc-kent)?
# Invoke the user's chosen shell
if echo $SHELL | egrep -q '/t?csh'; then
args='-f'
fi
exec $SHELL $args