File: run

package info (click to toggle)
munin 2.0.6-4%2Bdeb7u2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,944 kB
  • sloc: perl: 11,577; sh: 2,939; java: 1,880; makefile: 726; python: 272
file content (27 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (3)
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/bash

FINDBIN=$(cd -- "$(dirname "$0")" && pwd)
. $FINDBIN/common.sh

cd $BASEDIR


usage() {
    echo "Usage: $0 <NAME>"
    exit 1
}


if [ "$1" == "" ]; then
    usage
fi


RUN=$(find $DESTDIR -name $1)
shift

if [ "$RUN" == "" ]; then
    usage
fi

env PERL5LIB=$DESTDIR/$PERLSITELIB $RUN "$@"