File: vcflib

package info (click to toggle)
libvcflib 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,836 kB
  • ctags: 1,488
  • sloc: cpp: 27,298; makefile: 177; ansic: 139; python: 46; perl: 26; sh: 19
file content (24 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

BINDIR=/usr/lib/vcflib/bin

if [ $# -lt 1 ] ; then
    echo "Usage: $0 <program>" 1>&2
    echo "  Existing programs are:"
    ls ${BINDIR}
    exit 1
fi

WRAPPER=$0
PROGRAM=$1
shift
ARGS=$*

if [ -x ${BINDIR}/${PROGRAM} ]; then
    exec ${BINDIR}/${PROGRAM} ${ARGS}
else
    echo "Usage: ${PROGRAM} does not exist in vcflib"
    echo "  Existing programs are:"
    ls ${BINDIR}
    exit 1
fi