- Timestamp:
- 09/29/11 11:59:09 (13 years ago)
- Location:
- bot/trunk
- Files:
-
- 1 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
bot/trunk/MANIFEST
r69 r378 1 1 Changes 2 MANIFEST 2 3 Makefile.PL 3 MANIFEST4 4 README 5 t/Sophie-IrcBot.t 6 lib/Sophie/IrcBot.pm 5 bin/sophie-bot 6 bin/sophie-rpm 7 lib/Sophie/Bot/IRC.pm 8 lib/Sophie/Bot/Term.pm 9 lib/Sophie/Bot.pm 10 t/Sophie-Bot.t -
bot/trunk/Makefile.PL
r302 r378 4 4 # the contents of the Makefile that is written. 5 5 WriteMakefile( 6 NAME => 'Sophie:: Bot',6 NAME => 'Sophie::Tools', 7 7 VERSION_FROM => 'lib/Sophie/Bot.pm', # finds $VERSION 8 8 PREREQ_PM => {}, # e.g., Module::Name => 1.1 … … 10 10 (ABSTRACT_FROM => 'lib/Sophie/Bot.pm', # retrieve abstract from module 11 11 AUTHOR => 'Olivier Thauvin <nanardon@nanardon.zarb.org>') : ()), 12 EXE_FILES => [ qw( 13 bin/sophie-bot 14 bin/sophie-rpm 15 ) ], 16 macro => { 17 INSTALLMAN5DIR => '$(PERLPREFIX)/share/man/man5', 18 DESTINSTALLMAN5DIR => '$(DESTDIR)$(INSTALLMAN5DIR)', 19 INST_MAN5DIR => 'blib/man5', 20 DESTRPMDIR => '$(shell pwd)' 21 }, 12 22 ); 23 24 package MY; 25 26 sub postamble { 27 <<EOF; 28 #.PHONY .= svnmanifest 29 30 svnmanifest: 31 \tsvn ls -R| grep -v "/\$\$" > MANIFEST 32 33 ChangeLog: 34 \tsvn log > ChangeLog 35 36 sophie-tools.spec: sophie-tools.spec.in Makefile 37 \tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@ 38 39 rpm: \$(DISTVNAME).tar.gz sophie-tools.spec 40 \tmkdir ./noarch || : 41 \trpmbuild -ba --clean\\ 42 \t --define "_sourcedir `pwd`" \\ 43 \t --define "_specdir `pwd`" \\ 44 \t --define "_srcrpmdir \$(DESTRPMDIR)" \\ 45 \t --define "_rpmdir \$(DESTRPMDIR)" \\ 46 \t sophie-tools.spec 47 48 svnrpm: \$(DISTVNAME).tar.gz sophie-tools.spec 49 \tmkdir \$(DESTRPMDIR)/noarch || : 50 \trpmbuild -ba --clean\\ 51 \t --define "_sourcedir `pwd`" \\ 52 \t --define "_specdir `pwd`" \\ 53 \t --define "_srcrpmdir \$(DESTRPMDIR)" \\ 54 \t --define "_rpmdir \$(DESTRPMDIR)" \\ 55 \t --define "svnrelease `LC_ALL=C svn info | grep '^Revision:' | sed 's/Revision: //'`" \\ 56 \t sophie-tools.spec 57 58 EOF 59 } 60 61 sub installbin { 62 my $self = shift; 63 my $inherited = $self->SUPER::installbin(@_); 64 $inherited; 65 } 66 67 sub top_targets { 68 my $inherited = shift->SUPER::top_targets(@_); 69 $inherited; 70 } 71 72 sub install { 73 my ($self) = @_; 74 my $section = $self->SUPER::install(); 75 76 $section =~ s/(^install ::.*)/$1 install_config install_templates/m; 77 78 $section .= q[ 79 install_config :: 80 81 install_templates :: 82 ]; 83 84 return $section; 85 } -
bot/trunk/t/Sophie-Bot.t
r377 r378 10 10 11 11 use Test::More tests => 1; 12 BEGIN { use_ok('Sophie:: IrcBot') };12 BEGIN { use_ok('Sophie::Bot') }; 13 13 14 14 #########################
Note: See TracChangeset
for help on using the changeset viewer.