1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
#!/bin/sh
# This is an executable script so that
# 1) we can dynamically determine the installation path (which contains the arch triplet)
# 2) we don't have to keep track of whether the perl-base modules are arch-all (usr/share)
# or arch-only (usr/lib). Wildcards in dh_install are not quite enough for this.
# This is normally inherited from debian/rules
# but just in case somebody calls us directly
archtriplet=${archtriplet:-$(dpkg-architecture -qDEB_HOST_MULTIARCH)}
echo build-static/perl usr/bin
cd debian/tmp && \
while read f; do \
if echo $f | grep -q "^#"; then continue; fi
share=$(ls -d usr/share/perl/*/$f) 2>/dev/null
lib=$(ls -d usr/lib/*/perl/*/$f) 2>/dev/null
if [ -z "$lib$share" ]; then
echo "No match for $f" 1>&2
exit 1
fi
if [ -n "$lib" ] && [ -n "$share" ]; then
echo "Several matches for $f" 1>&2
exit 1
fi
echo "$lib$share" usr/lib/$archtriplet/perl-base/$(dirname $f)
done <<EOF
Config.pm
Config_heavy.pl
Config_git.pl
Cwd.pm
DynaLoader.pm
Errno.pm
Fcntl.pm
File/Glob.pm
Hash/Util.pm
IO.pm
IO/File.pm
IO/Handle.pm
IO/Pipe.pm
IO/Seekable.pm
IO/Select.pm
IO/Socket/INET.pm
IO/Socket/UNIX.pm
IO/Socket.pm
List/Util.pm
POSIX.pm
Scalar/Util.pm
Socket.pm
XSLoader.pm
auto/Cwd
auto/Fcntl
auto/File/Glob
IO/Socket/IP.pm
auto/Hash/Util/Util.so
auto/re/re.so
auto/attributes/attributes.so
auto/IO
auto/List/Util
auto/POSIX/POSIX.so
auto/Socket
lib.pm
re.pm
AutoLoader.pm
Carp.pm
Carp/Heavy.pm
Exporter.pm
Exporter/Heavy.pm
File/Spec.pm
File/Spec/Unix.pm
FileHandle.pm
Getopt/Long.pm
Getopt/Long/Parser.pm
IPC/Open2.pm
IPC/Open3.pm
SelectSaver.pm
Symbol.pm
Text/ParseWords.pm
Text/Tabs.pm
Text/Wrap.pm
Tie/Hash.pm
attributes.pm
base.pm
bytes.pm
constant.pm
fields.pm
integer.pm
locale.pm
overload.pm
overloading.pm
strict.pm
utf8.pm
unicore/To
unicore/lib
vars.pm
warnings.pm
warnings/register.pm
feature.pm
File/Temp.pm
File/Path.pm
File/Basename.pm
parent.pm
builtin.pm
EOF
|