Changeset 11184 for lang/perl/Punc/trunk
- Timestamp:
- 05/06/08 04:25:12 (7 months ago)
- Location:
- lang/perl/Punc/trunk
- Files:
-
- 2 added
- 1 modified
-
bin/punc-modulesync (added)
-
lib/Punc/Slave/Module/File.pm (modified) (2 diffs)
-
lib/Punc/Slave/Module/Punc.pm (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Punc/trunk/lib/Punc/Slave/Module/File.pm
r11181 r11184 3 3 use strict; 4 4 use warnings; 5 5 use Path::Class qw( dir file ); 6 6 use Punc::Slave::Module { operatingsystem => [ qw/ .* / ] }; 7 7 … … 13 13 sub copy { 14 14 my ( $self, $args ) = @_; 15 my $dest = $args->{dest} || $args->{src}; 16 open my $fh, '>', $dest or die $!; 15 my $dest_file = $args->{dest} || $args->{src}; 16 my $dest_dir = dir($dest_file)->parent; 17 $dest_dir->mkpath unless -d $dest_dir; 18 19 open my $fh, '>', $dest_file or die $!; 17 20 print $fh $args->{content}; 18 21 close $fh; 22 19 23 return; 20 24 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)