diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2014-07-31 16:05:21 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-08-01 09:03:48 -0500 |
commit | cf611654ded3f713da2c4982f9422fef31fce29e (patch) | |
tree | 9c9b103b51c527a78a0ddfc94bad313197897fb8 /src/build/tools | |
parent | d9fdae9ebebf2d056edc19517faf1a3c99476be6 (diff) | |
download | talos-hostboot-cf611654ded3f713da2c4982f9422fef31fce29e.tar.gz talos-hostboot-cf611654ded3f713da2c4982f9422fef31fce29e.zip |
Ensure 'Confidential' files are not added.
Change-Id: Ida2eba5256a9d2452e7cc6245e96c9e66d64bc6c
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12558
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-x | src/build/tools/verify-commit | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/build/tools/verify-commit b/src/build/tools/verify-commit index 7270f01af..68f99cb68 100755 --- a/src/build/tools/verify-commit +++ b/src/build/tools/verify-commit @@ -6,7 +6,9 @@ # # OpenPOWER HostBoot Project # -# COPYRIGHT International Business Machines Corp. 2013,2014 +# Contributors Listed Below - COPYRIGHT 2013,2014 +# [+] International Business Machines Corp. +# # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -173,6 +175,17 @@ sub verifyFileLine warning($file,$line,$count, "NOMERGE tag found."); } + + # Check for "Confidential". + if ($line =~ m/Confidential/i) + { + unless (($file =~ m/verify-commit/) || + ($file =~ m/addCopyright.pl/)) + { + error($file,$line,$count, + "File contains 'Confidential'."); + } + } } # @sub verifyCommitMsg |