Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use git instead of svn in gen_parrot.pl (incomplete)
  • Loading branch information
moritz committed Nov 11, 2010
1 parent 2c66f9a commit 3aa3c21
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build/gen_parrot.pl
Expand Up @@ -44,7 +44,19 @@ =head2 DESCRIPTION
}

print "Checking out Parrot r$reqsvn via svn...\n";
system_or_die(qw(svn checkout -r), $reqsvn , qw(https://svn.parrot.org/parrot/trunk parrot));
if (-d 'parrot') {
if (-d 'parrot/.svn') {
die "===SORRY===\n"
."Your 'parrot' directory is still an SVN repository.\n"
."Parrot switched to git recently; in order to replace your\n"
."repository by a git repository, please manually delete\n"
."the 'parrot' directory, and then re-run the command that caused\n"
."this error message\n";
}
} elsif (-d 'parrot') {
system_or_die(qw(git clone git://github.com/parrot/parrot.git parrot));
}
system_or_die(qw(git checkout), $reqsvn);

chdir('parrot') || die "Can't chdir to 'parrot': $!";

Expand Down

0 comments on commit 3aa3c21

Please sign in to comment.