Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/ap/RNAstructure/rna.sh

22 lines
455 B

#!/bin/sh
export DATAPATH=/usr/share/RNAstructure/data_tables
program=$1
if [ -z "$program" ]; then
echo "rna: command expected" >&2
echo "Available commands:" >&2
ls /usr/libexec/RNAstructure >&2
exit 1
elif [ ! -x /usr/libexec/RNAstructure/$program ]; then
echo "rna: command not found" >&2
echo "Available commands:" >&2
ls /usr/libexec/RNAstructure >&2
exit 2
fi
shift
exec /usr/libexec/RNAstructure/$program "$@"