dev-server: warn about missing svn

Change-Id: I6db5c5978d3ad26f771c35ce2d3e1a6e3f313ce9
This commit is contained in:
Brad Fitzpatrick 2012-12-23 11:05:12 -08:00
parent 8464059cab
commit f879818b10
1 changed files with 2 additions and 0 deletions

View File

@ -178,11 +178,13 @@ unless ($opt_staticres) {
my $local_rev = "r" . `svnversion`;
chomp($local_rev);
if ($local_rev ne $closure_rev) {
die "No 'svn' found; install Subversion.\n" unless `which svn` =~ /\S/;
system("svn", "update", "-r", $closure_rev)
and die "Failed to svn up the closure library: $!\n";
}
chdir $Bin or die;
} else {
die "No 'svn' found; install Subversion.\n" unless `which svn` =~ /\S/;
system("svn", "checkout", "-r", $closure_rev, $closure_svn, "tmp")
and die "Failed to svn co the closure library: $!\n";
}