run-script 303 B

1234567891011121314
  1. #!/bin/sh
  2. top_srcdir=`dirname $0`
  3. # To avoid using «readlink -f» or «realpath» we just change into the
  4. # desired directory and work from there.
  5. cd "$top_srcdir"
  6. # Set up the environment, to use local perl modules and data files.
  7. export PERL5LIB=`pwd`/scripts
  8. export DPKG_DATADIR=`pwd`
  9. exec "$@"