projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9818aea
)
Always try to create output directory, even if pintos directory exists.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 31 Dec 2004 07:04:34 +0000
(07:04 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 31 Dec 2004 07:04:34 +0000
(07:04 +0000)
grading/lib/Pintos/Grading.pm
patch
|
blob
|
history
diff --git
a/grading/lib/Pintos/Grading.pm
b/grading/lib/Pintos/Grading.pm
index aca287d5503e6a5f1911803768cd3908d54c2426..3ebeb223b6a7ee53f5b7c6f11e943c2010075156 100644
(file)
--- 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.