File: stacks

package info (click to toggle)
stacks 2.62%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,448 kB
  • sloc: cpp: 40,122; perl: 1,348; python: 449; sh: 407; makefile: 143
file content (27 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

# Standard thingy to run a program not in /usr/bin

PROGPATH=/usr/lib/stacks/bin
PROG=help

if ! [ "$*" = "" ] ; then
    PROG="$1" ; shift
fi

if [ "$PROG" = help -o "$PROG" = -help -o "$PROG" = -h ] ; then
    echo "Stacks - a pipeline for building loci from short-read sequences"
    echo "         v"`dpkg-query -f'${Version}' -W stacks | cut -d- -f1` 'http://creskolab.uoregon.edu/stacks/'
    echo
    echo "This is the Stacks wrapper script for Debian. Usage:"
    echo "    stacks <progname> <args...>"
    echo
    echo "Programs available are:"
    ls "$PROGPATH" | grep -v .pl | column
    echo
    echo "Or else add $PROGPATH to your \$PATH to invoke the commands directly."
    exit 0
fi

export PATH="$PROGPATH:$PATH"
exec "$PROGPATH/$PROG" "$@"