diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:45:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:45:20 +0000 |
commit | 9a08cbfcc1ef900a04580f35afe2a4592d7d6030 (patch) | |
tree | 004cc7027bca2f2c0bcb5806527c8e0c48df2d6e /run-script | |
parent | Initial commit. (diff) | |
download | dpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.tar.xz dpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.zip |
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'run-script')
-rwxr-xr-x | run-script | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/run-script b/run-script new file mode 100755 index 0000000..5f68a87 --- /dev/null +++ b/run-script @@ -0,0 +1,21 @@ +#!/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" "$@" |