{"action":"created","comment":{"url":"https://api.github.com/repos/moai/moai-dev/pulls/comments/41976511","id":41976511,"diff_hunk":"@@ -102,14 +102,20 @@ end\n copy = function ( dstpath, srcpath )\n \n \tif osx then\n-\t\t\n+\t\tprint(\"COPY: \\\"\" .. srcpath .. \"\\\" -> \\\"\" .. dstpath .. \"\\\"\")\n \t\t-- awful, but until there's a better way...\n \t\tmoaiCopy( srcpath, dstpath )\n \n \t\t-- so awful\n-\t\tos.execute ( string.format ( 'rm -fr %s', dstpath ))\n+\t\tif (false) then\n+\t\tprint( \"Warning! removal operation: \" .. string.format ( 'rm -fr \\\"%s\\\"', dstpath ))\n+\t\tos.execute ( string.format ( 'rm -fr \\\"%s\\\"', dstpath ))\n+\t\tend\n \n-\t\tlocal cmd = string.format ( 'cp -a %s %s', srcpath, dstpath )\n+\t\t-- less awful: ditto\n+\t\t--local cmd = string.format ( 'cp -rp \\\"%s\\\" \\\"%s\\\"', srcpath, dstpath )\n+\t\tlocal cmd = string.format ( 'ditto \\\"%s\\\" \\\"%s\\\"', srcpath, dstpath )\n+\t\tprint(\"COPY COMMAND: \" .. cmd)\n \t\tprint ( cmd )","path":"util/util.lua","position":30,"original_position":30,"commit_id":"298bf7224aa5967b4190572a7cc694cc69aa31ab","original_commit_id":"298bf7224aa5967b4190572a7cc694cc69aa31ab","user":{"login":"halfnelson","id":551284,"avatar_url":"https://avatars.githubusercontent.com/u/551284?v=3","gravatar_id":"","url":"https://api.github.com/users/halfnelson","html_url":"https://github.com/halfnelson","followers_url":"https://api.github.com/users/halfnelson/followers","following_url":"https://api.github.com/users/halfnelson/following{/other_user}","gists_url":"https://api.github.com/users/halfnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/halfnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfnelson/subscriptions","organizations_url":"https://api.github.com/users/halfnelson/orgs","repos_url":"https://api.github.com/users/halfnelson/repos","events_url":"https://api.github.com/users/halfnelson/events{/privacy}","received_events_url":"https://api.github.com/users/halfnelson/received_events","type":"User","site_admin":false},"body":"can probably get rid of the extra print(cmd)","created_at":"2015-10-14T10:15:16Z","updated_at":"2015-10-14T10:15:16Z","html_url":"https://github.com/moai/moai-dev/pull/1136#discussion_r41976511","pull_request_url":"https://api.github.com/repos/moai/moai-dev/pulls/1136","_links":{"self":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/comments/41976511"},"html":{"href":"https://github.com/moai/moai-dev/pull/1136#discussion_r41976511"},"pull_request":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/1136"}}},"pull_request":{"url":"https://api.github.com/repos/moai/moai-dev/pulls/1136","id":47632681,"html_url":"https://github.com/moai/moai-dev/pull/1136","diff_url":"https://github.com/moai/moai-dev/pull/1136.diff","patch_url":"https://github.com/moai/moai-dev/pull/1136.patch","issue_url":"https://api.github.com/repos/moai/moai-dev/issues/1136","number":1136,"state":"open","locked":false,"title":"Fix copy of files on OSX, add usage() docs to moaiutil, include env.sh toolbelt script","user":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"body":"Fixed: Copying of files on OSX is best done with ditto to preserve attribs, safe over-writes, etc.\r\nFixed: moaiutil blows up on poke (i.e. moaiutil #no args != explode)\r\nAdded: Basic usage() for moaiutil tool belt instructions\r\nAdded: env.sh for setting up MOAI_SDK_HOME and donning the toolbelt.","created_at":"2015-10-14T08:54:31Z","updated_at":"2015-10-14T10:15:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b451a76b67aa73ae3a6f5433fac49e45830e9075","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moai/moai-dev/pulls/1136/commits","review_comments_url":"https://api.github.com/repos/moai/moai-dev/pulls/1136/comments","review_comment_url":"https://api.github.com/repos/moai/moai-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moai/moai-dev/issues/1136/comments","statuses_url":"https://api.github.com/repos/moai/moai-dev/statuses/298bf7224aa5967b4190572a7cc694cc69aa31ab","head":{"label":"seclorum:develop","ref":"develop","sha":"298bf7224aa5967b4190572a7cc694cc69aa31ab","user":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"repo":{"id":26313218,"name":"moai-dev","full_name":"seclorum/moai-dev","owner":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seclorum/moai-dev","description":"This is the development repo of Moai SDK. Current, but not necessarily tested or stable.","fork":true,"url":"https://api.github.com/repos/seclorum/moai-dev","forks_url":"https://api.github.com/repos/seclorum/moai-dev/forks","keys_url":"https://api.github.com/repos/seclorum/moai-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seclorum/moai-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seclorum/moai-dev/teams","hooks_url":"https://api.github.com/repos/seclorum/moai-dev/hooks","issue_events_url":"https://api.github.com/repos/seclorum/moai-dev/issues/events{/number}","events_url":"https://api.github.com/repos/seclorum/moai-dev/events","assignees_url":"https://api.github.com/repos/seclorum/moai-dev/assignees{/user}","branches_url":"https://api.github.com/repos/seclorum/moai-dev/branches{/branch}","tags_url":"https://api.github.com/repos/seclorum/moai-dev/tags","blobs_url":"https://api.github.com/repos/seclorum/moai-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seclorum/moai-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seclorum/moai-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/seclorum/moai-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seclorum/moai-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/seclorum/moai-dev/languages","stargazers_url":"https://api.github.com/repos/seclorum/moai-dev/stargazers","contributors_url":"https://api.github.com/repos/seclorum/moai-dev/contributors","subscribers_url":"https://api.github.com/repos/seclorum/moai-dev/subscribers","subscription_url":"https://api.github.com/repos/seclorum/moai-dev/subscription","commits_url":"https://api.github.com/repos/seclorum/moai-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/seclorum/moai-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/seclorum/moai-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/seclorum/moai-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/seclorum/moai-dev/contents/{+path}","compare_url":"https://api.github.com/repos/seclorum/moai-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seclorum/moai-dev/merges","archive_url":"https://api.github.com/repos/seclorum/moai-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seclorum/moai-dev/downloads","issues_url":"https://api.github.com/repos/seclorum/moai-dev/issues{/number}","pulls_url":"https://api.github.com/repos/seclorum/moai-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/seclorum/moai-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/seclorum/moai-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seclorum/moai-dev/labels{/name}","releases_url":"https://api.github.com/repos/seclorum/moai-dev/releases{/id}","created_at":"2014-11-07T09:37:44Z","updated_at":"2015-10-14T08:07:37Z","pushed_at":"2015-10-14T08:49:59Z","git_url":"git://github.com/seclorum/moai-dev.git","ssh_url":"git@github.com:seclorum/moai-dev.git","clone_url":"https://github.com/seclorum/moai-dev.git","svn_url":"https://github.com/seclorum/moai-dev","homepage":"getmoai.com","size":289743,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"moai:develop","ref":"develop","sha":"b926a65247f7d5eb40b8bbd543bec41476940650","user":{"login":"moai","id":696279,"avatar_url":"https://avatars.githubusercontent.com/u/696279?v=3","gravatar_id":"","url":"https://api.github.com/users/moai","html_url":"https://github.com/moai","followers_url":"https://api.github.com/users/moai/followers","following_url":"https://api.github.com/users/moai/following{/other_user}","gists_url":"https://api.github.com/users/moai/gists{/gist_id}","starred_url":"https://api.github.com/users/moai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moai/subscriptions","organizations_url":"https://api.github.com/users/moai/orgs","repos_url":"https://api.github.com/users/moai/repos","events_url":"https://api.github.com/users/moai/events{/privacy}","received_events_url":"https://api.github.com/users/moai/received_events","type":"Organization","site_admin":false},"repo":{"id":1588584,"name":"moai-dev","full_name":"moai/moai-dev","owner":{"login":"moai","id":696279,"avatar_url":"https://avatars.githubusercontent.com/u/696279?v=3","gravatar_id":"","url":"https://api.github.com/users/moai","html_url":"https://github.com/moai","followers_url":"https://api.github.com/users/moai/followers","following_url":"https://api.github.com/users/moai/following{/other_user}","gists_url":"https://api.github.com/users/moai/gists{/gist_id}","starred_url":"https://api.github.com/users/moai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moai/subscriptions","organizations_url":"https://api.github.com/users/moai/orgs","repos_url":"https://api.github.com/users/moai/repos","events_url":"https://api.github.com/users/moai/events{/privacy}","received_events_url":"https://api.github.com/users/moai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moai/moai-dev","description":"This is the development repo of Moai SDK. Current, but not necessarily tested or stable.","fork":false,"url":"https://api.github.com/repos/moai/moai-dev","forks_url":"https://api.github.com/repos/moai/moai-dev/forks","keys_url":"https://api.github.com/repos/moai/moai-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moai/moai-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moai/moai-dev/teams","hooks_url":"https://api.github.com/repos/moai/moai-dev/hooks","issue_events_url":"https://api.github.com/repos/moai/moai-dev/issues/events{/number}","events_url":"https://api.github.com/repos/moai/moai-dev/events","assignees_url":"https://api.github.com/repos/moai/moai-dev/assignees{/user}","branches_url":"https://api.github.com/repos/moai/moai-dev/branches{/branch}","tags_url":"https://api.github.com/repos/moai/moai-dev/tags","blobs_url":"https://api.github.com/repos/moai/moai-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moai/moai-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moai/moai-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/moai/moai-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moai/moai-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/moai/moai-dev/languages","stargazers_url":"https://api.github.com/repos/moai/moai-dev/stargazers","contributors_url":"https://api.github.com/repos/moai/moai-dev/contributors","subscribers_url":"https://api.github.com/repos/moai/moai-dev/subscribers","subscription_url":"https://api.github.com/repos/moai/moai-dev/subscription","commits_url":"https://api.github.com/repos/moai/moai-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/moai/moai-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/moai/moai-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/moai/moai-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/moai/moai-dev/contents/{+path}","compare_url":"https://api.github.com/repos/moai/moai-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moai/moai-dev/merges","archive_url":"https://api.github.com/repos/moai/moai-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moai/moai-dev/downloads","issues_url":"https://api.github.com/repos/moai/moai-dev/issues{/number}","pulls_url":"https://api.github.com/repos/moai/moai-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/moai/moai-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/moai/moai-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moai/moai-dev/labels{/name}","releases_url":"https://api.github.com/repos/moai/moai-dev/releases{/id}","created_at":"2011-04-08T18:37:29Z","updated_at":"2015-10-13T03:02:32Z","pushed_at":"2015-10-14T08:54:31Z","git_url":"git://github.com/moai/moai-dev.git","ssh_url":"git@github.com:moai/moai-dev.git","clone_url":"https://github.com/moai/moai-dev.git","svn_url":"https://github.com/moai/moai-dev","homepage":"getmoai.com","size":546465,"stargazers_count":653,"watchers_count":653,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":329,"mirror_url":null,"open_issues_count":189,"forks":329,"open_issues":189,"watchers":653,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/1136"},"html":{"href":"https://github.com/moai/moai-dev/pull/1136"},"issue":{"href":"https://api.github.com/repos/moai/moai-dev/issues/1136"},"comments":{"href":"https://api.github.com/repos/moai/moai-dev/issues/1136/comments"},"review_comments":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/1136/comments"},"review_comment":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moai/moai-dev/pulls/1136/commits"},"statuses":{"href":"https://api.github.com/repos/moai/moai-dev/statuses/298bf7224aa5967b4190572a7cc694cc69aa31ab"}}}}