1
0
Fork 0
dpkg/build-aux/run-script
Daniel Baumann 1879661313
Adding upstream version 1.22.20.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-20 21:21:00 +02:00

21 lines
445 B
Bash
Executable file

#!/bin/sh
set -e
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"
cwd="$(pwd)"
cd "$OLDPWD"
# Set up the environment, to use local perl modules and data files.
export PERL="${PERL:-perl}"
export PERL5LIB="$cwd/scripts:$cwd/dselect/methods"
export DPKG_DATADIR="$cwd/data"
script="$1"
shift 1
exec "$PERL" "$cwd/$script" "$@"