Debian Codegraph @

debian/perl-base.install

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