diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-26 14:11:14 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-26 14:11:14 +0300 |
commit | cf9383412494964d6188fcf08a362c0c0f313afc (patch) | |
tree | bd9e6a5b3a63cbb155b81112c855c19cb5f2b314 /debian/fake-config | |
download | perl-debian.tar.gz |
Import perl (5.30.0-9)debian/5.30.0-9debian
Diffstat (limited to 'debian/fake-config')
-rwxr-xr-x | debian/fake-config | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/fake-config b/debian/fake-config new file mode 100755 index 0000000..bfbbb44 --- /dev/null +++ b/debian/fake-config @@ -0,0 +1,18 @@ +#!/bin/sh +# copy Config.pm from the first argument to a temporary directory +# then run the rest with that prepended to @INC + +# better ideas welcome... + +set -e + +T=$(mktemp -d) +d="$1" +shift +cp "$d/Config.pm" "$d/Config_heavy.pl" "$T" +p="$1" +shift +status=0 +"$p" "-I$T" "$@" || status=$? +rm -rf "$T" +exit $status |