2 # vim:ts=4:sw=4:expandtab
11 my @contents = <$src/*>;
12 # Safety-Check: We are already _in_ a Go library. Don’t copy its
13 # subfolders, this has no use and potentially only screws things up.
14 # This situation should never happen, unless some package ships files that
15 # are already shipped in another package.
16 my @gosrc = grep { /\.go$/ } @contents;
18 my @dirs = grep { -d
} @contents;
20 my $base = basename
($dir);
21 if (-d
"$dst/$base") {
22 link_contents
("$src/$base", "$dst/$base");
24 symlink("$src/$base", "$dst/$base");
31 link_contents
($src, $dst);