summaryrefslogtreecommitdiff
path: root/run-script
blob: cebab5b69d2768d2a5edc49b09298839e8b0fdaf (plain)
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 "$@"