aboutsummaryrefslogtreecommitdiff
path: root/Makefile.PL
blob: 4579c163a618973199980c08500126a3271c1886 (plain)
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'		=> 'renrot',
    'AUTHOR'		=> 'Zeus Panchenko <zeus@dn.farlep.net>',
    'VERSION_FROM'	=> 'renrot', # finds $VERSION
    'PREREQ_PM'		=> { 'Image::ExifTool' => 5.72, 'Getopt::Long' => 2.34 },
    'PREREQ_FATAL'	=> 'true',
    'EXE_FILES'		=> [ 'renrot' ],
    'dist'		=> { COMPRESS => 'gzip', SUFFIX => 'gz' },
);

package MY;

sub postamble {
    my $postamble = << 'END';
# Build rpm
rpm : tardist
	rpmbuild -ta $(DISTVNAME).tar.$(SUFFIX)
	$(RM_F) $(DISTVNAME).tar.$(SUFFIX)

# CVS tagging
tag :
	cvs tag "renrot_$(shell date +'%Y%m%d%H%M%S')"
END
    return $postamble;
}

Return to:

Send suggestions and report system problems to the System administrator.