blob: bfbbb4493a8c47a356267723673d866fb2aa499f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|