]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Improve Windows compatibility
authorJakub Vrana <jakub@vrana.cz>
Mon, 11 Mar 2013 01:08:14 +0000 (18:08 -0700)
committerJakub Vrana <jakub@vrana.cz>
Mon, 11 Mar 2013 01:08:41 +0000 (18:08 -0700)
Test Plan:
  $ arc liberate
  $ arc lint

Reviewers: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5319

scripts/lib/PhutilLibraryMapBuilder.php
src/lint/linter/ArcanistPhutilLibraryLinter.php
src/workflow/ArcanistLiberateWorkflow.php

index 45fbdd010ca28590df17b54f878265ae50f42a57..3b0f31ebc51b2be5186d109a91985d76fb8bf363 100755 (executable)
@@ -352,7 +352,7 @@ final class PhutilLibraryMapBuilder {
     $absolute_file = $this->getPath($file);
     $bin = dirname(dirname(__FILE__)).'/phutil_symbols.php';
 
-    return new ExecFuture('%s --ugly -- %s', $bin, $absolute_file);
+    return new ExecFuture('php %s --ugly -- %s', $bin, $absolute_file);
   }
 
 
index 846e546736f134741d787965e271e178148cd036..0a8f772e267eb9908b9df04f51f3b1eff1e8530b 100644 (file)
@@ -57,7 +57,7 @@ final class ArcanistPhutilLibraryLinter extends ArcanistLinter {
       // Do these one at a time since they individually fanout to saturate
       // available system resources.
       $future = new ExecFuture(
-        '%s --show --quiet --ugly -- %s',
+        'php %s --show --quiet --ugly -- %s',
         $bin,
         phutil_get_library_root($lib));
       $symbols[$lib] = $future->resolveJSON();
index 10d9ed32714fb0a8ec9a2d08e0fb268eec9d4c71..4df0499d00ef6c32597f75f3f98d5ee9449796fe 100644 (file)
@@ -156,7 +156,7 @@ EOTEXT
     $bin = $this->getScriptPath('scripts/phutil_rebuild_map.php');
 
     return phutil_passthru(
-      '%s %C %s',
+      'php %s %C %s',
       $bin,
       $this->getArgument('all') ? '--drop-cache' : '',
       $path);