File: run-from-checkout

package info (click to toggle)
gem2deb 0.33.1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 992 kB
  • sloc: ruby: 4,942; perl: 81; ansic: 66; makefile: 35; sh: 33
file content (21 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

basedir=$(dirname $0)
this_script=$(basename $0)

if [ $# -eq 0 ]; then
  prefix='usage:'
  for program in $(ls -1 ${basedir}/bin); do
    echo "$prefix $this_script $program [ARGS]"
    prefix='      '
  done
  exit 1
fi

export PATH=${basedir}/bin:$PATH
export RUBYLIB=${basedir}/lib
export PERL5LIB=${basedir}/debhelper7

"$@"