You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by da...@apache.org on 2018/02/27 07:08:06 UTC

[incubator-openwhisk-release] branch master updated: Add the support to check the existence of NOTICE and LICENSE files (#48)

This is an automated email from the ASF dual-hosted git repository.

daisyguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d59de4  Add the support to check the existence of NOTICE and LICENSE files (#48)
1d59de4 is described below

commit 1d59de47f0cb433e8f9944f3073b3dc69b1bc5e7
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Tue Feb 27 02:08:04 2018 -0500

    Add the support to check the existence of NOTICE and LICENSE files (#48)
    
    * Add the support to check the existence of NOTICE and LICENSE files
    * Update the hash values for the repos
---
 tools/config.json           | 24 ++++++++++++------------
 tools/verify_source_code.sh | 11 +++++++++--
 2 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/tools/config.json b/tools/config.json
index 009be41..6aa521c 100644
--- a/tools/config.json
+++ b/tools/config.json
@@ -20,62 +20,62 @@
     "openwhisk-runtime-python"
   ],
   "openwhisk": {
-    "hash": "b55e46c",
+    "hash": "4d4477b",
     "repository": "https://github.com/apache/incubator-openwhisk.git",
     "branch": "master"
   },
   "openwhisk_wskdeploy": {
-    "hash": "fa97469",
+    "hash": "2c03e05",
     "repository": "https://github.com/apache/incubator-openwhisk-wskdeploy.git",
     "branch": "master"
   },
   "openwhisk_cli": {
-    "hash": "293573a",
+    "hash": "9509fc0",
     "repository": "https://github.com/apache/incubator-openwhisk-cli.git",
     "branch": "master"
   },
   "openwhisk_client_go": {
-    "hash": "72bf712",
+    "hash": "92fcff9",
     "repository": "https://github.com/apache/incubator-openwhisk-client-go.git",
     "branch": "master"
   },
   "openwhisk_catalog": {
-    "hash": "ad24d4c",
+    "hash": "fa45e68",
     "repository": "https://github.com/apache/openwhisk-catalog.git",
     "branch": "master"
   },
   "openwhisk_apigateway": {
-    "hash": "c0a11bf",
+    "hash": "501589b",
     "repository": "https://github.com/apache/incubator-openwhisk-apigateway.git",
     "branch": "master"
   },
   "openwhisk_runtime_nodejs": {
-    "hash": "5c7fd31",
+    "hash": "29cac52",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-nodejs.git",
     "branch": "master"
   },
   "openwhisk_runtime_swift": {
-    "hash": "b320f30",
+    "hash": "f9e9941",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-swift.git",
     "branch": "master"
   },
   "openwhisk_runtime_php": {
-    "hash": "f58d47c",
+    "hash": "7c2273a",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-php.git",
     "branch": "master"
   },
   "openwhisk_runtime_java": {
-    "hash": "1530ff2",
+    "hash": "6497206",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-java.git",
     "branch": "master"
   },
   "openwhisk_runtime_docker": {
-    "hash": "c8e8f31",
+    "hash": "a721d22",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-docker.git",
     "branch": "master"
   },
   "openwhisk_runtime_python": {
-    "hash": "148e578",
+    "hash": "0ce7a87",
     "repository": "https://github.com/apache/incubator-openwhisk-runtime-python.git",
     "branch": "master"
   }
diff --git a/tools/verify_source_code.sh b/tools/verify_source_code.sh
index 2c157ae..38b6df9 100755
--- a/tools/verify_source_code.sh
+++ b/tools/verify_source_code.sh
@@ -1,7 +1,5 @@
 #!/usr/bin/env bash
 
-set -e
-
 echo "Generate the report regarding the source code headers."
 
 WORK_DIR=${1:-"$HOME"}
@@ -17,3 +15,12 @@ mkdir -p $REPORT_DIR
 touch $REPORT_FILE
 
 java -jar $SCRIPTDIR/lib/apache-rat-0.13-SNAPSHOT.jar -a $OPENWHISK_CLEANED_SOURCE_DIR > $REPORT_FILE
+
+echo "Check the existence of LICENSE and NOTICE."
+
+for repo in $(echo $repos | sed "s/,/ /g")
+do
+    repo_name=$(echo "$repo" | sed -e 's/^"//' -e 's/"$//')
+    echo "Check the repository $repo_name"
+    cd $OPENWHISK_CLEANED_SOURCE_DIR/$repo_name && ls {LICENSE*,NOTICE*}
+done

-- 
To stop receiving notification emails like this one, please contact
daisyguo@apache.org.