File: run-from-checkout

package info (click to toggle)
gem2deb 2.2.8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,232 kB
  • sloc: ruby: 5,562; sh: 142; perl: 46; makefile: 39; ansic: 33
file content (19 lines) | stat: -rwxr-xr-x 298 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
#!/bin/bash

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

. "${basedir}"/activate.bash

"$@"