beppu / app-vw

a deployment system for Squatting+Continuity apps

This URL has Read+Write access

app-vw / Makefile.PL
100644 47 lines (43 sloc) 1.227 kb
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
use strict;
use warnings;
use ExtUtils::MakeMaker;
 
WriteMakefile(
  NAME => 'App::VW',
  AUTHOR => 'John BEPPU <beppu@cpan.org>',
  VERSION_FROM => 'lib/App/VW.pm',
  ABSTRACT_FROM => 'lib/App/VW.pm',
  EXE_FILES => [ 'bin/vw', 'bin/vw-bus' ],
  PREREQ_PM => {
    'Time::HiRes' => 0,
    'File::Copy' => 0,
    'YAML' => 0,
    'Test::More' => 0,
    'File::ShareDir' => 0,
    'App::CLI' => 0,
    'AnyEvent' => 0,
    'Event' => 0,
    'Sys::Syslog' => 0.13,
  },
  dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
  clean => { FILES => 'App-VW-*' },
  depend => {
    pm_to_blib => 'etc_to_auto',
    clean_subdirs => 'rm_etc_to_auto'
  }
);
 
sub MY::libscan {
  my $self = shift;
  $_ = shift;
  # $self appears to be a blessed hashref that contains
  # all the attributes/value pairs passed to WriteMakeFile()
  # plus some other MakeMaker-related info.
  return 0 if /\.sw.$/ || /~$/;
  return $_;
}
 
sub MY::postamble {q{
etc_to_auto : etc/init.d/vw-ubuntu etc/vw_harness.tmpl
$(CP) -R etc $(INST_AUTODIR)
$(TOUCH) etc_to_auto
rm_etc_to_auto :
$(RM) etc_to_auto
}}