File: run-script

package info (click to toggle)
dpkg 1.17.12
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 39,500 kB
  • ctags: 4,699
  • sloc: ansic: 30,021; perl: 18,661; sh: 14,600; cpp: 4,676; makefile: 1,165; lex: 227; sed: 16
file content (13 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

top_srcdir=`dirname $0`

# To avoid using «readlink -f» or «realpath» we just change into the
# desired directory and work from there.
cd "$top_srcdir"

# Set up the environment, to use local perl modules and data files.
export PERL5LIB=`pwd`/scripts:`pwd`/dselect/methods
export DPKG_DATADIR=`pwd`

exec "$@"