{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/comments/42926350","id":42926350,"diff_hunk":"@@ -62,9 +62,43 @@ function Usage {\n    echo\n }\n \n-  VERBOSE=0\n-  TOOLSDIR=\n-  BASEDIR=\n+# -----------------------------------------------------------------------------\n+# function: downloadSource - downloads and un-tars the requested file\n+#    $1 - tar file to download \n+#    $2 - directory where source is untarred\n+# -----------------------------------------------------------------------------\n+function downloadSource\n+{\n+  # currently only tar files ending in \"tar.gz\" and \"tgz\" are recognized\n+  TARSUFFIX=\"tar.gz\"\n+  if [[ ! $1 == *$\"$TARSUFFIX\" ]]; then\n+    TARSUFFIX=\"tgz\"\n+  fi\n+\n+  if [ ! -e $BASEDIR/$2.$TARSUFFIX ]; then\n+    wget $1  >>$LOGFILE 2>&1","path":"install/traf_tools_setup.sh","position":37,"original_position":37,"commit_id":"476b2189152502967eee686fdc1dd57cdd5fe2d6","original_commit_id":"476b2189152502967eee686fdc1dd57cdd5fe2d6","user":{"login":"robertamarton","id":13022496,"avatar_url":"https://avatars.githubusercontent.com/u/13022496?v=3","gravatar_id":"","url":"https://api.github.com/users/robertamarton","html_url":"https://github.com/robertamarton","followers_url":"https://api.github.com/users/robertamarton/followers","following_url":"https://api.github.com/users/robertamarton/following{/other_user}","gists_url":"https://api.github.com/users/robertamarton/gists{/gist_id}","starred_url":"https://api.github.com/users/robertamarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertamarton/subscriptions","organizations_url":"https://api.github.com/users/robertamarton/orgs","repos_url":"https://api.github.com/users/robertamarton/repos","events_url":"https://api.github.com/users/robertamarton/events{/privacy}","received_events_url":"https://api.github.com/users/robertamarton/received_events","type":"User","site_admin":false},"body":"That is a good suggestion.  I would like to make other improvements to this script and will make a note of this issue.\r\n","created_at":"2015-10-24T00:11:55Z","updated_at":"2015-10-24T00:11:55Z","html_url":"https://github.com/apache/incubator-trafodion/pull/145#discussion_r42926350","pull_request_url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/comments/42926350"},"html":{"href":"https://github.com/apache/incubator-trafodion/pull/145#discussion_r42926350"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145","id":48638346,"html_url":"https://github.com/apache/incubator-trafodion/pull/145","diff_url":"https://github.com/apache/incubator-trafodion/pull/145.diff","patch_url":"https://github.com/apache/incubator-trafodion/pull/145.patch","issue_url":"https://api.github.com/repos/apache/incubator-trafodion/issues/145","number":145,"state":"open","locked":false,"title":"[TRAFODION-1560] Improve script that sets up tools needed for Trafodion build","user":{"login":"robertamarton","id":13022496,"avatar_url":"https://avatars.githubusercontent.com/u/13022496?v=3","gravatar_id":"","url":"https://api.github.com/users/robertamarton","html_url":"https://github.com/robertamarton","followers_url":"https://api.github.com/users/robertamarton/followers","following_url":"https://api.github.com/users/robertamarton/following{/other_user}","gists_url":"https://api.github.com/users/robertamarton/gists{/gist_id}","starred_url":"https://api.github.com/users/robertamarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertamarton/subscriptions","organizations_url":"https://api.github.com/users/robertamarton/orgs","repos_url":"https://api.github.com/users/robertamarton/repos","events_url":"https://api.github.com/users/robertamarton/events{/privacy}","received_events_url":"https://api.github.com/users/robertamarton/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-10-23T22:43:56Z","updated_at":"2015-10-24T00:11:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"765aaf17e940ef47bcb7b4a1d3ae85a5e38cf2ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-trafodion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-trafodion/issues/145/comments","statuses_url":"https://api.github.com/repos/apache/incubator-trafodion/statuses/476b2189152502967eee686fdc1dd57cdd5fe2d6","head":{"label":"robertamarton:testb","ref":"testb","sha":"476b2189152502967eee686fdc1dd57cdd5fe2d6","user":{"login":"robertamarton","id":13022496,"avatar_url":"https://avatars.githubusercontent.com/u/13022496?v=3","gravatar_id":"","url":"https://api.github.com/users/robertamarton","html_url":"https://github.com/robertamarton","followers_url":"https://api.github.com/users/robertamarton/followers","following_url":"https://api.github.com/users/robertamarton/following{/other_user}","gists_url":"https://api.github.com/users/robertamarton/gists{/gist_id}","starred_url":"https://api.github.com/users/robertamarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertamarton/subscriptions","organizations_url":"https://api.github.com/users/robertamarton/orgs","repos_url":"https://api.github.com/users/robertamarton/repos","events_url":"https://api.github.com/users/robertamarton/events{/privacy}","received_events_url":"https://api.github.com/users/robertamarton/received_events","type":"User","site_admin":false},"repo":{"id":38080155,"name":"incubator-trafodion","full_name":"robertamarton/incubator-trafodion","owner":{"login":"robertamarton","id":13022496,"avatar_url":"https://avatars.githubusercontent.com/u/13022496?v=3","gravatar_id":"","url":"https://api.github.com/users/robertamarton","html_url":"https://github.com/robertamarton","followers_url":"https://api.github.com/users/robertamarton/followers","following_url":"https://api.github.com/users/robertamarton/following{/other_user}","gists_url":"https://api.github.com/users/robertamarton/gists{/gist_id}","starred_url":"https://api.github.com/users/robertamarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertamarton/subscriptions","organizations_url":"https://api.github.com/users/robertamarton/orgs","repos_url":"https://api.github.com/users/robertamarton/repos","events_url":"https://api.github.com/users/robertamarton/events{/privacy}","received_events_url":"https://api.github.com/users/robertamarton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertamarton/incubator-trafodion","description":"Mirror of Apache Trafodion (Incubating)","fork":true,"url":"https://api.github.com/repos/robertamarton/incubator-trafodion","forks_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/forks","keys_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/teams","hooks_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/hooks","issue_events_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/issues/events{/number}","events_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/events","assignees_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/assignees{/user}","branches_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/branches{/branch}","tags_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/tags","blobs_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/statuses/{sha}","languages_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/languages","stargazers_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/stargazers","contributors_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/contributors","subscribers_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/subscribers","subscription_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/subscription","commits_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/issues/comments{/number}","contents_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/contents/{+path}","compare_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/merges","archive_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/downloads","issues_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/issues{/number}","pulls_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/pulls{/number}","milestones_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/milestones{/number}","notifications_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/labels{/name}","releases_url":"https://api.github.com/repos/robertamarton/incubator-trafodion/releases{/id}","created_at":"2015-06-25T23:40:10Z","updated_at":"2015-06-25T23:40:48Z","pushed_at":"2015-10-23T22:42:31Z","git_url":"git://github.com/robertamarton/incubator-trafodion.git","ssh_url":"git@github.com:robertamarton/incubator-trafodion.git","clone_url":"https://github.com/robertamarton/incubator-trafodion.git","svn_url":"https://github.com/robertamarton/incubator-trafodion","homepage":null,"size":57565,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"393eae3c1cacc9f4b4ad1ccaa70c6cdb8b11865b","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":36349344,"name":"incubator-trafodion","full_name":"apache/incubator-trafodion","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-trafodion","description":"Mirror of Apache Trafodion (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-trafodion","forks_url":"https://api.github.com/repos/apache/incubator-trafodion/forks","keys_url":"https://api.github.com/repos/apache/incubator-trafodion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-trafodion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-trafodion/teams","hooks_url":"https://api.github.com/repos/apache/incubator-trafodion/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-trafodion/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-trafodion/events","assignees_url":"https://api.github.com/repos/apache/incubator-trafodion/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-trafodion/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-trafodion/tags","blobs_url":"https://api.github.com/repos/apache/incubator-trafodion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-trafodion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-trafodion/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-trafodion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-trafodion/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-trafodion/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-trafodion/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-trafodion/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-trafodion/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-trafodion/subscription","commits_url":"https://api.github.com/repos/apache/incubator-trafodion/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-trafodion/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-trafodion/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-trafodion/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-trafodion/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-trafodion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-trafodion/merges","archive_url":"https://api.github.com/repos/apache/incubator-trafodion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-trafodion/downloads","issues_url":"https://api.github.com/repos/apache/incubator-trafodion/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-trafodion/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-trafodion/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-trafodion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-trafodion/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-trafodion/releases{/id}","created_at":"2015-05-27T07:00:05Z","updated_at":"2015-10-16T09:49:17Z","pushed_at":"2015-10-23T22:43:58Z","git_url":"git://github.com/apache/incubator-trafodion.git","ssh_url":"git@github.com:apache/incubator-trafodion.git","clone_url":"https://github.com/apache/incubator-trafodion.git","svn_url":"https://github.com/apache/incubator-trafodion","homepage":null,"size":65851,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"mirror_url":"git://git.apache.org/incubator-trafodion.git","open_issues_count":6,"forks":44,"open_issues":6,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145"},"html":{"href":"https://github.com/apache/incubator-trafodion/pull/145"},"issue":{"href":"https://api.github.com/repos/apache/incubator-trafodion/issues/145"},"comments":{"href":"https://api.github.com/repos/apache/incubator-trafodion/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-trafodion/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-trafodion/statuses/476b2189152502967eee686fdc1dd57cdd5fe2d6"}}}}