{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments/74106255","id":74106255,"diff_hunk":"@@ -0,0 +1,109 @@\n+#!/bin/bash\n+#\n+#  Copyright 2014-2016 CyberVision, Inc.\n+#\n+#  Licensed under the Apache License, Version 2.0 (the \"License\");\n+#  you may not use this file except in compliance with the License.\n+#  You may obtain a copy of the License at\n+#\n+#       http://www.apache.org/licenses/LICENSE-2.0\n+#\n+#  Unless required by applicable law or agreed to in writing, software\n+#  distributed under the License is distributed on an \"AS IS\" BASIS,\n+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+#  See the License for the specific language governing permissions and\n+#  limitations under the License.\n+#\n+\n+# Exit immediately if error occurs\n+set -e\n+\n+RUN_DIR=`pwd`\n+\n+function help_message {\n+    echo \"Choose one of the following: {build|run|deploy|clean}\"\n+    exit 1\n+}\n+\n+if [ $# -eq 0 ]\n+then\n+    help_message\n+fi\n+\n+APP_NAME=\"demo_client\"\n+PROJECT_HOME=$(pwd)\n+BUILD_DIR=\"build\"\n+LIBS_PATH=\"libs\"\n+KAA_LIB_PATH=\"$LIBS_PATH/kaa\"\n+KAA_C_LIB_HEADER_PATH=\"$KAA_LIB_PATH/src\"\n+KAA_CPP_LIB_HEADER_PATH=\"$KAA_LIB_PATH/kaa\"\n+KAA_SDK_TAR=\"kaa-c*.tar.gz\"\n+\n+function unpack_sdk {\n+    if [[ ! -d \"$KAA_C_LIB_HEADER_PATH\" &&  ! -d \"$KAA_CPP_LIB_HEADER_PATH\" ]]\n+    then\n+        KAA_SDK_TAR_NAME=$(find $PROJECT_HOME -iname $KAA_SDK_TAR)\n+\n+        if [ -z \"$KAA_SDK_TAR_NAME\" ]\n+        then\n+            echo \"Please, put the generated C/C++ SDK tarball into the libs/kaa folder and re-run the script.\"\n+            exit 1\n+        fi\n+\n+        mkdir -p $KAA_LIB_PATH\n+        tar -zxf $KAA_SDK_TAR_NAME -C $KAA_LIB_PATH\n+    fi\n+}\n+\n+function build_app {\n+    cd $PROJECT_HOME","path":"credentialsdemo/source/c/build.sh","position":59,"original_position":59,"commit_id":"7fda9c3c1cc7c7083e21a0ea4dec9f9e65d0e91f","original_commit_id":"7fda9c3c1cc7c7083e21a0ea4dec9f9e65d0e91f","user":{"login":"vadimol","id":5074479,"avatar_url":"https://avatars.githubusercontent.com/u/5074479?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimol","html_url":"https://github.com/vadimol","followers_url":"https://api.github.com/users/vadimol/followers","following_url":"https://api.github.com/users/vadimol/following{/other_user}","gists_url":"https://api.github.com/users/vadimol/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimol/subscriptions","organizations_url":"https://api.github.com/users/vadimol/orgs","repos_url":"https://api.github.com/users/vadimol/repos","events_url":"https://api.github.com/users/vadimol/events{/privacy}","received_events_url":"https://api.github.com/users/vadimol/received_events","type":"User","site_admin":false},"body":"please, add quotes \" \" to avoid potential issues with spaces in path.\r\n","created_at":"2016-08-09T17:37:06Z","updated_at":"2016-08-09T17:37:06Z","html_url":"https://github.com/kaaproject/sample-apps/pull/166#discussion_r74106255","pull_request_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments/74106255"},"html":{"href":"https://github.com/kaaproject/sample-apps/pull/166#discussion_r74106255"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166","id":80430674,"html_url":"https://github.com/kaaproject/sample-apps/pull/166","diff_url":"https://github.com/kaaproject/sample-apps/pull/166.diff","patch_url":"https://github.com/kaaproject/sample-apps/pull/166.patch","issue_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/166","number":166,"state":"open","locked":false,"title":"APP-173: [C] Basic level Apps: Credentials management","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"body":"/cc @slash32 @dubland","created_at":"2016-08-08T10:49:15Z","updated_at":"2016-08-09T17:37:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83fd225d2bee4ea5f6f5755b7c57ceda0f550c2a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166/commits","review_comments_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166/comments","review_comment_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/166/comments","statuses_url":"https://api.github.com/repos/kaaproject/sample-apps/statuses/7fda9c3c1cc7c7083e21a0ea4dec9f9e65d0e91f","head":{"label":"RostakaGmfun:APP-173","ref":"APP-173","sha":"7fda9c3c1cc7c7083e21a0ea4dec9f9e65d0e91f","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"repo":{"id":56328377,"name":"sample-apps","full_name":"RostakaGmfun/sample-apps","owner":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RostakaGmfun/sample-apps","description":"Sample applications for Kaa Sandbox","fork":true,"url":"https://api.github.com/repos/RostakaGmfun/sample-apps","forks_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/forks","keys_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/teams","hooks_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/hooks","issue_events_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/events","assignees_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/tags","blobs_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/languages","stargazers_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/stargazers","contributors_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/contributors","subscribers_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/subscribers","subscription_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/subscription","commits_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/merges","archive_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/downloads","issues_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/releases{/id}","deployments_url":"https://api.github.com/repos/RostakaGmfun/sample-apps/deployments","created_at":"2016-04-15T14:58:51Z","updated_at":"2016-04-15T14:58:58Z","pushed_at":"2016-08-08T13:36:35Z","git_url":"git://github.com/RostakaGmfun/sample-apps.git","ssh_url":"git@github.com:RostakaGmfun/sample-apps.git","clone_url":"https://github.com/RostakaGmfun/sample-apps.git","svn_url":"https://github.com/RostakaGmfun/sample-apps","homepage":null,"size":155051,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"kaaproject:develop","ref":"develop","sha":"1006ea7afbc151cb1d937aba61222214276ce5c0","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":40200503,"name":"sample-apps","full_name":"kaaproject/sample-apps","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/sample-apps","description":"Sample applications for Kaa Sandbox","fork":false,"url":"https://api.github.com/repos/kaaproject/sample-apps","forks_url":"https://api.github.com/repos/kaaproject/sample-apps/forks","keys_url":"https://api.github.com/repos/kaaproject/sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/sample-apps/teams","hooks_url":"https://api.github.com/repos/kaaproject/sample-apps/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/sample-apps/events","assignees_url":"https://api.github.com/repos/kaaproject/sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/sample-apps/tags","blobs_url":"https://api.github.com/repos/kaaproject/sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/sample-apps/languages","stargazers_url":"https://api.github.com/repos/kaaproject/sample-apps/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/sample-apps/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/sample-apps/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/sample-apps/subscription","commits_url":"https://api.github.com/repos/kaaproject/sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/sample-apps/merges","archive_url":"https://api.github.com/repos/kaaproject/sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/sample-apps/downloads","issues_url":"https://api.github.com/repos/kaaproject/sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/sample-apps/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/sample-apps/deployments","created_at":"2015-08-04T18:03:04Z","updated_at":"2016-08-04T12:29:36Z","pushed_at":"2016-08-09T11:55:53Z","git_url":"git://github.com/kaaproject/sample-apps.git","ssh_url":"git@github.com:kaaproject/sample-apps.git","clone_url":"https://github.com/kaaproject/sample-apps.git","svn_url":"https://github.com/kaaproject/sample-apps","homepage":null,"size":231270,"stargazers_count":9,"watchers_count":9,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":24,"forks":38,"open_issues":24,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166"},"html":{"href":"https://github.com/kaaproject/sample-apps/pull/166"},"issue":{"href":"https://api.github.com/repos/kaaproject/sample-apps/issues/166"},"comments":{"href":"https://api.github.com/repos/kaaproject/sample-apps/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/sample-apps/statuses/7fda9c3c1cc7c7083e21a0ea4dec9f9e65d0e91f"}}}}
{"actor":{"display_login":"vadimol"}}