{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/ra2/pulls/comments/69482789","id":69482789,"diff_hunk":"@@ -1,146 +1,21 @@\n-function FindMSBuild\n-{\n-\t$msBuildVersions = @(\"4.0\")\n-\tforeach ($msBuildVersion in $msBuildVersions)\n-\t{\n-\t\t$key = \"HKLM:\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\{0}\" -f $msBuildVersion\n-\t\t$property = Get-ItemProperty $key -ErrorAction SilentlyContinue\n-\t\tif ($property -eq $null -or $property.MSBuildToolsPath -eq $null)\n-\t\t{\n-\t\t\tcontinue\n-\t\t}\n-\t\t$path = Join-Path $property.MSBuildToolsPath -ChildPath \"MSBuild.exe\"\n-\t\tif (Test-Path $path)\n-\t\t{\n-\t\t\treturn $path\n-\t\t}\n-\t}\n-\treturn $null\n-}\n-\n if ($args.Length -eq 0)\n {\n-\techo \"Command list:\"\n-\techo \"\"\n-\techo \"  all             Builds the mod dll.\"\n-\techo \"  dependencies    Copies the mod's dependencies into the\"\n-\techo \"                  'OpenRA.Mods.RA2/dependencies' folder.\"\n-\techo \"\"\n-\t$command = (Read-Host \"Enter command\").Split(' ', 2)\n-}\n-else\n-{\n-\t$command = $args\n+\t$command = \"default\"\n }\n-\n-if ($command -eq \"all\")\n+else if ($args.Length -eq 1)\n {\n-\t$msBuild = FindMSBuild\n-\t$msBuildArguments = \"/t:Rebuild /nr:false\"\n-\tif ($msBuild -eq $null)\n-\t{\n-\t\techo \"Unable to locate an appropriate version of MSBuild.\"\n-\t}\n-\telse\n-\t{\n-\t\tcd OpenRA.Mods.RA2\n-\t\t$proc = Start-Process $msBuild $msBuildArguments -NoNewWindow -PassThru -Wait\n-\t\tif ($proc.ExitCode -ne 0)\n-\t\t{\n-\t\t\techo \"Build failed. If just the development tools failed to build, try installing Visual Studio. You may also still be able to run the game.\"\n-\t\t}\n-\t\telse\n-\t\t{\n-\t\t\techo \"Build succeeded.\"\n-\t\t}\n-\t\tcd ..\n-\t}\n+    $command = $args\n+\n+    if ($command == \"help\" -or $command == \"h\" -or $command == \"--help\" -or $command == \"-h\" -or $command == \"/h\" -or $command == \"/?\")\n+    {\n+        echo \"Target list:\"\n+        echo \"\"\n+        echo \"  default   Builds the mod dll.\"\n+        echo \"  deps      Copies the mod's dependencies into the\"\n+        echo \"              'OpenRA.Mods.RA2/dependencies' folder.\"\n+        echo \"\"\n+\texit","path":"make.ps1","position":70,"original_position":70,"commit_id":"3221d0a2a4c315a83dbe0ffd86a9851f80189d8b","original_commit_id":"3221d0a2a4c315a83dbe0ffd86a9851f80189d8b","user":{"login":"Phrohdoh","id":4861023,"avatar_url":"https://avatars.githubusercontent.com/u/4861023?v=3","gravatar_id":"","url":"https://api.github.com/users/Phrohdoh","html_url":"https://github.com/Phrohdoh","followers_url":"https://api.github.com/users/Phrohdoh/followers","following_url":"https://api.github.com/users/Phrohdoh/following{/other_user}","gists_url":"https://api.github.com/users/Phrohdoh/gists{/gist_id}","starred_url":"https://api.github.com/users/Phrohdoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phrohdoh/subscriptions","organizations_url":"https://api.github.com/users/Phrohdoh/orgs","repos_url":"https://api.github.com/users/Phrohdoh/repos","events_url":"https://api.github.com/users/Phrohdoh/events{/privacy}","received_events_url":"https://api.github.com/users/Phrohdoh/received_events","type":"User","site_admin":false},"body":"This closes the host process, not just the script?","created_at":"2016-07-04T17:52:23Z","updated_at":"2016-07-04T17:52:23Z","html_url":"https://github.com/OpenRA/ra2/pull/267#discussion_r69482789","pull_request_url":"https://api.github.com/repos/OpenRA/ra2/pulls/267","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/comments/69482789"},"html":{"href":"https://github.com/OpenRA/ra2/pull/267#discussion_r69482789"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/ra2/pulls/267","id":76096824,"html_url":"https://github.com/OpenRA/ra2/pull/267","diff_url":"https://github.com/OpenRA/ra2/pull/267.diff","patch_url":"https://github.com/OpenRA/ra2/pull/267.patch","issue_url":"https://api.github.com/repos/OpenRA/ra2/issues/267","number":267,"state":"open","locked":false,"title":"Implement Cake-based build system","user":{"login":"Phrohdoh","id":4861023,"avatar_url":"https://avatars.githubusercontent.com/u/4861023?v=3","gravatar_id":"","url":"https://api.github.com/users/Phrohdoh","html_url":"https://github.com/Phrohdoh","followers_url":"https://api.github.com/users/Phrohdoh/followers","following_url":"https://api.github.com/users/Phrohdoh/following{/other_user}","gists_url":"https://api.github.com/users/Phrohdoh/gists{/gist_id}","starred_url":"https://api.github.com/users/Phrohdoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phrohdoh/subscriptions","organizations_url":"https://api.github.com/users/Phrohdoh/orgs","repos_url":"https://api.github.com/users/Phrohdoh/repos","events_url":"https://api.github.com/users/Phrohdoh/events{/privacy}","received_events_url":"https://api.github.com/users/Phrohdoh/received_events","type":"User","site_admin":false},"body":"This introduces a dependency on [`cake`](http://cakebuild.net/) for those of us who want an easy compilation via `$ make`.\r\n***It does not affect anyone else!***\r\n\r\nCompiling via an IDE (or directly with msbuild/xbuild) is unchanged.\r\n\r\nI think this is a fair trade-off, especially given the fact not using it doesn't make compilation any more complex than it already is, and doesn't change anything for those who don't know anything about it.\r\n\r\nWindows users will want to grab [the `0.13.0` release](https://github.com/cake-build/cake/releases/download/v0.13.0/Cake-bin-v0.13.0.zip) or `choco install cake.portable`.\r\nOS X brew users can `brew install cake`.\r\nLinux people are on their own (just grab the above release and throw it on your `$PATH`?)","created_at":"2016-07-03T19:46:56Z","updated_at":"2016-07-04T17:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe8565f678ee7ba7886f37ee8fd4522d6a19b94c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/ra2/pulls/267/commits","review_comments_url":"https://api.github.com/repos/OpenRA/ra2/pulls/267/comments","review_comment_url":"https://api.github.com/repos/OpenRA/ra2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/ra2/issues/267/comments","statuses_url":"https://api.github.com/repos/OpenRA/ra2/statuses/3221d0a2a4c315a83dbe0ffd86a9851f80189d8b","head":{"label":"Phrohdoh:cake","ref":"cake","sha":"3221d0a2a4c315a83dbe0ffd86a9851f80189d8b","user":{"login":"Phrohdoh","id":4861023,"avatar_url":"https://avatars.githubusercontent.com/u/4861023?v=3","gravatar_id":"","url":"https://api.github.com/users/Phrohdoh","html_url":"https://github.com/Phrohdoh","followers_url":"https://api.github.com/users/Phrohdoh/followers","following_url":"https://api.github.com/users/Phrohdoh/following{/other_user}","gists_url":"https://api.github.com/users/Phrohdoh/gists{/gist_id}","starred_url":"https://api.github.com/users/Phrohdoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phrohdoh/subscriptions","organizations_url":"https://api.github.com/users/Phrohdoh/orgs","repos_url":"https://api.github.com/users/Phrohdoh/repos","events_url":"https://api.github.com/users/Phrohdoh/events{/privacy}","received_events_url":"https://api.github.com/users/Phrohdoh/received_events","type":"User","site_admin":false},"repo":{"id":47922481,"name":"ra2","full_name":"Phrohdoh/ra2","owner":{"login":"Phrohdoh","id":4861023,"avatar_url":"https://avatars.githubusercontent.com/u/4861023?v=3","gravatar_id":"","url":"https://api.github.com/users/Phrohdoh","html_url":"https://github.com/Phrohdoh","followers_url":"https://api.github.com/users/Phrohdoh/followers","following_url":"https://api.github.com/users/Phrohdoh/following{/other_user}","gists_url":"https://api.github.com/users/Phrohdoh/gists{/gist_id}","starred_url":"https://api.github.com/users/Phrohdoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phrohdoh/subscriptions","organizations_url":"https://api.github.com/users/Phrohdoh/orgs","repos_url":"https://api.github.com/users/Phrohdoh/repos","events_url":"https://api.github.com/users/Phrohdoh/events{/privacy}","received_events_url":"https://api.github.com/users/Phrohdoh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Phrohdoh/ra2","description":"Red Alert 2 mod","fork":true,"url":"https://api.github.com/repos/Phrohdoh/ra2","forks_url":"https://api.github.com/repos/Phrohdoh/ra2/forks","keys_url":"https://api.github.com/repos/Phrohdoh/ra2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Phrohdoh/ra2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Phrohdoh/ra2/teams","hooks_url":"https://api.github.com/repos/Phrohdoh/ra2/hooks","issue_events_url":"https://api.github.com/repos/Phrohdoh/ra2/issues/events{/number}","events_url":"https://api.github.com/repos/Phrohdoh/ra2/events","assignees_url":"https://api.github.com/repos/Phrohdoh/ra2/assignees{/user}","branches_url":"https://api.github.com/repos/Phrohdoh/ra2/branches{/branch}","tags_url":"https://api.github.com/repos/Phrohdoh/ra2/tags","blobs_url":"https://api.github.com/repos/Phrohdoh/ra2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Phrohdoh/ra2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Phrohdoh/ra2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Phrohdoh/ra2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Phrohdoh/ra2/statuses/{sha}","languages_url":"https://api.github.com/repos/Phrohdoh/ra2/languages","stargazers_url":"https://api.github.com/repos/Phrohdoh/ra2/stargazers","contributors_url":"https://api.github.com/repos/Phrohdoh/ra2/contributors","subscribers_url":"https://api.github.com/repos/Phrohdoh/ra2/subscribers","subscription_url":"https://api.github.com/repos/Phrohdoh/ra2/subscription","commits_url":"https://api.github.com/repos/Phrohdoh/ra2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Phrohdoh/ra2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Phrohdoh/ra2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Phrohdoh/ra2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Phrohdoh/ra2/contents/{+path}","compare_url":"https://api.github.com/repos/Phrohdoh/ra2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Phrohdoh/ra2/merges","archive_url":"https://api.github.com/repos/Phrohdoh/ra2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Phrohdoh/ra2/downloads","issues_url":"https://api.github.com/repos/Phrohdoh/ra2/issues{/number}","pulls_url":"https://api.github.com/repos/Phrohdoh/ra2/pulls{/number}","milestones_url":"https://api.github.com/repos/Phrohdoh/ra2/milestones{/number}","notifications_url":"https://api.github.com/repos/Phrohdoh/ra2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Phrohdoh/ra2/labels{/name}","releases_url":"https://api.github.com/repos/Phrohdoh/ra2/releases{/id}","deployments_url":"https://api.github.com/repos/Phrohdoh/ra2/deployments","created_at":"2015-12-13T14:30:30Z","updated_at":"2016-03-29T12:10:35Z","pushed_at":"2016-07-04T16:48:44Z","git_url":"git://github.com/Phrohdoh/ra2.git","ssh_url":"git@github.com:Phrohdoh/ra2.git","clone_url":"https://github.com/Phrohdoh/ra2.git","svn_url":"https://github.com/Phrohdoh/ra2","homepage":null,"size":4640,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenRA:master","ref":"master","sha":"305cd468096148b458111599e70a1b74a979b2ee","user":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":47920913,"name":"ra2","full_name":"OpenRA/ra2","owner":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/ra2","description":"A Red Alert 2 mod for the OpenRA game engine","fork":false,"url":"https://api.github.com/repos/OpenRA/ra2","forks_url":"https://api.github.com/repos/OpenRA/ra2/forks","keys_url":"https://api.github.com/repos/OpenRA/ra2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/ra2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/ra2/teams","hooks_url":"https://api.github.com/repos/OpenRA/ra2/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/ra2/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/ra2/events","assignees_url":"https://api.github.com/repos/OpenRA/ra2/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/ra2/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/ra2/tags","blobs_url":"https://api.github.com/repos/OpenRA/ra2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/ra2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/ra2/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/ra2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/ra2/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/ra2/languages","stargazers_url":"https://api.github.com/repos/OpenRA/ra2/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/ra2/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/ra2/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/ra2/subscription","commits_url":"https://api.github.com/repos/OpenRA/ra2/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/ra2/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/ra2/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/ra2/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/ra2/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/ra2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/ra2/merges","archive_url":"https://api.github.com/repos/OpenRA/ra2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/ra2/downloads","issues_url":"https://api.github.com/repos/OpenRA/ra2/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/ra2/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/ra2/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/ra2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/ra2/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/ra2/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRA/ra2/deployments","created_at":"2015-12-13T13:45:05Z","updated_at":"2016-07-03T11:26:23Z","pushed_at":"2016-07-04T16:44:02Z","git_url":"git://github.com/OpenRA/ra2.git","ssh_url":"git@github.com:OpenRA/ra2.git","clone_url":"https://github.com/OpenRA/ra2.git","svn_url":"https://github.com/OpenRA/ra2","homepage":"","size":6413,"stargazers_count":71,"watchers_count":71,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":34,"forks":30,"open_issues":34,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/267"},"html":{"href":"https://github.com/OpenRA/ra2/pull/267"},"issue":{"href":"https://api.github.com/repos/OpenRA/ra2/issues/267"},"comments":{"href":"https://api.github.com/repos/OpenRA/ra2/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/ra2/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/ra2/statuses/3221d0a2a4c315a83dbe0ffd86a9851f80189d8b"}}}}
{"actor":{"display_login":"Phrohdoh"}}