dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d656f
)
Add quick sanity check before before trying to use the $outDir
author
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 8 Apr 2011 05:28:44 +0000
(
05:28
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 8 Apr 2011 05:28:44 +0000
(
05:28
+0000)
maintenance/hiphop/make
patch
|
blob
|
history
diff --git
a/maintenance/hiphop/make
b/maintenance/hiphop/make
index
2aa0bd1
..
3e270f8
100755
(executable)
--- a/
maintenance/hiphop/make
+++ b/
maintenance/hiphop/make
@@
-54,6
+54,11
@@
class MakeHipHop extends Maintenance {
' --output-dir=' . wfEscapeShellArg( $outDir ) .
' --log=3' );
+ # Sanity check, quickly make sure we've got an output directory
+ if( !is_dir( $outDir ) ) {
+ $this->error( "No output directory", true );
+ }
+
# Copy the generated C++ files into the source directory for cmake
$iter = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator( $outDir ),