openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [incubator-openwhisk-release] branch master updated: Small enhancements to (#283)
Date Tue, 28 May 2019 13:41:28 GMT
This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository

The following commit(s) were added to refs/heads/master by this push:
     new 38e5c15  Small enhancements to (#283)
38e5c15 is described below

commit 38e5c15a9f3405f30ad88b5594618aa27d7b9019
Author: David Grove <>
AuthorDate: Tue May 28 09:41:23 2019 -0400

    Small enhancements to (#283)
    1. Support LICENSE.txt files which append license
       summaries of bundled dependencies per [1].
    2. Support project-specific scancode exclusion file
       (by convention located in tools/travis/scancodeExclusions.
 tools/ | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tools/ b/tools/
index a0bd0cc..accf5f5 100755
--- a/tools/
+++ b/tools/
@@ -139,16 +139,24 @@ printf "verifing notice..."
 NTXT=$(cat "$DIR/$BASE/NOTICE.txt")
 validate "$NOTICE" "$NTXT" "cat '$DIR/$BASE/NOTICE.txt'"
+# If a project bundles any dependencies, there will be additional
+# text appended to LICENSE.txt to summarize the additional licenses.
+# Therefore only enforce a prefix match between the project's
+# LICENSE.txt and the official text of the Apache LICENSE-2.0.
 printf "verifying license..."
 curl -s -o "$DIR/LICENSE-2.0"
-## this is a more forgiving license check that allows for the copyright line to be filled
-#CMD="diff '$DIR/$BASE/LICENSE.txt' '$DIR/LICENSE-2.0' -I '^   Copyright'"
-CMD="diff '$DIR/$BASE/LICENSE.txt' '$DIR/LICENSE-2.0'"
-DIF=$(eval "$CMD")
+LICENSE_LEN=$(wc -c "$DIR/LICENSE-2.0" | awk '{print $1}')
+CMP=$(eval "$CMD")
 validate $? 0 "$CMD"
 printf "verifying sources have proper headers..."
-CMD="'$DIR/incubator-openwhisk-utilities/scancode/' --config '$DIR/incubator-openwhisk-utilities/scancode/ASF-Release.cfg'
+if [ -f '$DIR/$BASE/tools/travis/scancodeExlusions' ]; then
+    SCANCODE_EXTRA_ARGS="--gitignore '$DIR/$BASE/tools/travis/scancodeExclusions'"
+CMD="'$DIR/incubator-openwhisk-utilities/scancode/' --config '$DIR/incubator-openwhisk-utilities/scancode/ASF-Release.cfg'
 SC=$(eval $CMD >& /dev/null)
 validate $? 0 "$CMD"

View raw message