From: Ben Pfaff Date: Fri, 31 Dec 2004 07:04:34 +0000 (+0000) Subject: Always try to create output directory, even if pintos directory exists. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3c07d8b0aad51ade536e35f63267f5826524c5;p=pintos-anon Always try to create output directory, even if pintos directory exists. --- diff --git a/grading/lib/Pintos/Grading.pm b/grading/lib/Pintos/Grading.pm index aca287d..3ebeb22 100644 --- a/grading/lib/Pintos/Grading.pm +++ b/grading/lib/Pintos/Grading.pm @@ -87,11 +87,12 @@ EOF # applies any patches providing in the grading directory, # and installs a default pintos/src/constants.h sub extract_sources { - # Nothing to do if we already have a source tree. - return if -d "pintos"; - + # Make sure the output dir exists. -d ("output") || mkdir ("output") or die "output: mkdir: $!\n"; + # Nothing else to do if we already have a source tree. + return if -d "pintos"; + my ($tarball) = choose_tarball (); # Extract sources.