#!/bin/sh
if [ $# = 0 -o "x$1" = "x--help" ]; then
    cat <<EOF
Usage: $0 program [arguments]

Vibrate runs the specified program, which presumably uses the NCBI C
toolkit, with the Vibrant library preloaded.  The main effect of this
preloading is that omitting arguments produces a dialog box for setting
parameters rather than a usage message.
EOF
    exit 0
fi
preload=/usr/lib/libvibrant.so.6
if [ -n "$LD_PRELOAD" ]; then
    LD_PRELOAD=$preload:$LD_PRELOAD
else
    LD_PRELOAD=$preload
fi
export LD_PRELOAD
exec "$@"
