]> khamidou — GitHub mirrors - arcanist.git/commit
Improve arc compatibility on Windows
authorepriestley <git@epriestley.com>
Mon, 5 Mar 2012 18:02:37 +0000 (10:02 -0800)
committerepriestley <git@epriestley.com>
Mon, 5 Mar 2012 18:02:37 +0000 (10:02 -0800)
commit2f9a422bc6365be026e2cf1cdf7d34705fad4e28
treeb3813edb8711fa2d3e146afd89dd8e0457e2b60b
parenteae497152ca819ff746abb17618564075708dfad
Improve arc compatibility on Windows

Summary:
  - When altering the include_path(), use PATH_SEPARATOR (";" on Windows, ":" elsewhere) instead of hard-coded ":".
  - Detect missing php_curl.dll extension.
  - Use APPDATA instead of HOME for storing .arcrc (the internet implies this is correct?)
  - Don't try to do chmod() stuff on Windows; it's not critical and I don't want to figure out how it works.

Test Plan: Was able to run part of some arc commands on Windows.

Reviewers: btrahan, Makinde, Koolvin

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T124

Differential Revision: https://secure.phabricator.com/D1756
29 files changed:
scripts/__init_script__.php
scripts/arcanist.php
scripts/phutil_analyzer.php
src/workflow/alias/ArcanistAliasWorkflow.php
src/workflow/amend/ArcanistAmendWorkflow.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/branch/ArcanistBranchWorkflow.php
src/workflow/call-conduit/ArcanistCallConduitWorkflow.php
src/workflow/commit/ArcanistCommitWorkflow.php
src/workflow/cover/ArcanistCoverWorkflow.php
src/workflow/diff/ArcanistDiffWorkflow.php
src/workflow/download/ArcanistDownloadWorkflow.php
src/workflow/export/ArcanistExportWorkflow.php
src/workflow/git-hook-pre-receive/ArcanistGitHookPreReceiveWorkflow.php
src/workflow/help/ArcanistHelpWorkflow.php
src/workflow/install-certificate/ArcanistInstallCertificateWorkflow.php
src/workflow/land/ArcanistLandWorkflow.php
src/workflow/liberate/ArcanistLiberateWorkflow.php
src/workflow/lint/ArcanistLintWorkflow.php
src/workflow/list/ArcanistListWorkflow.php
src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php
src/workflow/merge/ArcanistMergeWorkflow.php
src/workflow/paste/ArcanistPasteWorkflow.php
src/workflow/patch/ArcanistPatchWorkflow.php
src/workflow/shell-complete/ArcanistShellCompleteWorkflow.php
src/workflow/svn-hook-pre-commit/ArcanistSvnHookPreCommitWorkflow.php
src/workflow/unit/ArcanistUnitWorkflow.php
src/workflow/upload/ArcanistUploadWorkflow.php
src/workflow/which/ArcanistWhichWorkflow.php