File: Makefile.PL

package info (click to toggle)
cstocs 1%3A3.44-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 312 kB
  • sloc: perl: 725; makefile: 5
file content (46 lines) | stat: -rw-r--r-- 1,015 bytes parent folder | download | duplicates (2)
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

use Config;

use ExtUtils::MakeMaker;

my $VERSION = '3.44';

=comment

sub MY::dist {
	package MY; # so that "SUPER" works right
	my $inherited = shift->SUPER::dist(@_);
	$inherited =~ s/old text/new text/;
	$inherited;
}

=cut

sub MY::postamble {
	"
specversion: Makefile.PL Cstools.spec.dist
	echo Updating Cstools.spec
	\@\$(PERL) -pe 's/__VERSION__/$VERSION/' Cstools.spec.dist > Cstools.spec

rpm: dist
	rpm -tb -vv ../\$(DISTNAME)-\$(VERSION).tar.gz
";

	}

WriteMakefile(
	NAME		=> 'Cz',
	DISTNAME	=> 'Cstools',
	VERSION		=> $VERSION,
	PL_FILES	=> { 'bin/cstocs.PL' => 'bin/cstocs',
					'bin/cssort.PL' => 'bin/cssort',
					'bin/dbfcstocs.PL' => 'bin/dbfcstocs',
					},
	EXE_FILES	=> [ 'bin/cstocs', 'bin/cssort', 'bin/dbfcstocs'],
	dist		=> { COMPRESS => 'gzip -9f', SUFFIX => 'gz',
		POSTOP => 'mv $(DISTNAME)-$(VERSION).tar.gz ../',
		DIST_DEFAULT => 'specversion tardist' },
	clean		=> { FILES => 'bin/cstocs bin/cssort bin/dbfcstocs' },
	macro		=> { DIST_DEFAULT => 'specversion tardist', },
	);