File: run-from-checkout

package info (click to toggle)
gem2deb 0.43
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,004 kB
  • sloc: ruby: 5,070; perl: 81; ansic: 66; makefile: 35; sh: 33
file content (21 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (4)
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="$(readlink -f "$(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

"$@"