Skip to content
This repository was archived by the owner on Jul 18, 2018. It is now read-only.

Commit 0605cba

Browse files
committed
* Ignore the devel/ directory in distros
1 parent 4d78603 commit 0605cba

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

MANIFEST.SKIP

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ test-mirror/authors/id/B/BU/BUSTER/.*(Fails|OS|Fine)/
2020
cpan-home
2121
process_setup_options.t
2222
App-.*
23+
devel

devel/merge_to_cpanpm

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
#!perl
22

3+
use strict;
4+
use warnings;
5+
36
use 5.010;
47

5-
use File::Copy qw( copy );
8+
use Cwd qw( cwd );
9+
use File::Copy qw( copy );
610
use File::Spec::Functions;
711

812
my $cpanpm_base = $ARGV[0] || '../cpanpm';
9-
die "Couldn't find cpanpm repository at $cpanpm_base\n";
13+
die "Couldn't find cpanpm repository at $cpanpm_base\n"
14+
unless -d $cpanpm_base;
1015

1116
{
12-
my $cwd = Cwd();
17+
my $cwd = cwd();
1318
chdir $cpanpm_base or die "Couldn't chdir to $cpanpm_base";
1419

15-
my $branch = grep { /^\*\s*(.*)/ } `git branch`;
16-
die "Branch is not 'update_cpan'\n" unless $branch eq 'update_cpan';
20+
my( $branch ) = map { /^\*\s*(.*)/ ? $1 : () } `git branch`;
21+
22+
#die "Branch is not 'update_cpan'\n" unless $branch eq 'update_cpan';
23+
print "branch is [$branch]\n";
1724

1825
my $uptodate = ( `git pull` =~ /Already/ );
1926
die "Repo is not up to date! Stopping!\n" unless $uptodate;
2027

2128
chdir $cwd or die "Couldn't chdir back to $cwd";
2229
}
2330

24-
my @file_to_copy = (
31+
my @files_to_copy = (
2532
[ qw( lib/Cpan.pm lib/App/Cpan.pm ) ],
2633
[ qw( script/cpan scripts/cpan ) ],
2734
);
2835

2936
foreach my $pair ( @files_to_copy ) {
3037
my( $original, $copy_rel, $mode ) = @$pair;
31-
3238
warn "Could not find $original\n" unless -e $original;
3339
my $destination = catfile( $cpanpm_base, $copy_rel );
40+
print "Copying $original -> $destination\n";
3441
copy( $original, $destination ) or warn "Copy failed: $!";
3542
}

0 commit comments

Comments
 (0)