From f879818b10dc6e4a302cb3a461bbf3a3178e962e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 23 Dec 2012 11:05:12 -0800 Subject: [PATCH] dev-server: warn about missing svn Change-Id: I6db5c5978d3ad26f771c35ce2d3e1a6e3f313ce9 --- dev-server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-server b/dev-server index ce9e3725f..ca87625a9 100755 --- a/dev-server +++ b/dev-server @@ -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"; }