summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2011-09-23 17:37:56 -0500
committerMark W. Wenning <wenning@us.ibm.com>2011-09-26 14:47:05 -0500
commita6425adc2dff068d6ce06e1e62e0aee6f2c46d3e (patch)
treeb040be3e11ff17133643c5a57c9b12b20e9df48b /src/build
parentbe3b49b71922e6c2040562e4f1e13ae8f2b1ceca (diff)
downloadtalos-hostboot-a6425adc2dff068d6ce06e1e62e0aee6f2c46d3e.tar.gz
talos-hostboot-a6425adc2dff068d6ce06e1e62e0aee6f2c46d3e.zip
Improve Warning message for copyright validate
Change-Id: I607defa618800ff1f5d1a986acf50349ec60cb8b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/361 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/tools/addCopyright.pl8
-rw-r--r--src/build/tools/test_text.txt8
2 files changed, 13 insertions, 3 deletions
diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl
index 256be9d3e..bf7ac5811 100755
--- a/src/build/tools/addCopyright.pl
+++ b/src/build/tools/addCopyright.pl
@@ -144,9 +144,11 @@ while (defined($_ = shift))
if ("Unknown" eq $filetype)
{
- print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
- print "WARNING:: File $_ :Unknown Filetype: $_\n";
- print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
+ print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
+ print "WARNING:: File $_ :Unknown Filetype: $filetype\n";
+ print " Skipping this file and continuing.\n";
+ print " Please add the copyright prologue manually.\n";
+ print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
## exit 1;
next;
}
diff --git a/src/build/tools/test_text.txt b/src/build/tools/test_text.txt
new file mode 100644
index 000000000..5f170b991
--- /dev/null
+++ b/src/build/tools/test_text.txt
@@ -0,0 +1,8 @@
+This file contains raw text.
+addCopyright.pl should print an warning for this file and then continue:
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+WARNING:: File <file> :Unknown Filetype: <file>
+ Skipping this file and continuing,
+ Please add the copyright prologue manually.
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! \ No newline at end of file
OpenPOWER on IntegriCloud