File: setup-dist

package info (click to toggle)
libfindbin-libs-perl 4.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: perl: 1,323; sh: 38; makefile: 7
file content (51 lines) | stat: -rwxr-xr-x 793 bytes parent folder | download
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
#!/bin/bash

cd $(dirname $0);

[ -e Makefile ] && make distclean;

 tmp='lib/FindBin/libs.tmp';
dest='lib/FindBin/libs.pm';
mkdir -p $(dirname $dest);

rm -fv t/0*t;

placeholder()
{
    cat <<END > $tmp;
$( grep '^package' $dest)

sub import
{

    die <<'MSG';
This is a placeholder.
Please execute "perl Makefile.PL" in the
module's distribution directory in order
to have the correct file(s) installed.
MSG

}
1
__END__
=head1 PLACEHOLDER

This is a placeholder.

The correct files are copied as part of processing the Makefile.PL.
END

mv -v $tmp $dest;

}

# now that the dummy file is installed, genrate the dist.

perl Makefile.PL        &&
make test               &&
make disttest           &&
placeholder             &&
make dist               &&
mv -v *.tar.gz /var/tmp ;

exit 0;