From e9b6b68017fd121ad43733164c9a35e95b0b1eb8 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 26 Jul 2013 13:28:09 -0500 Subject: Workaround bug in 'file' for XML copyright prolog. Change-Id: Iac89083b88546a3c4b59350e98c42893f320e71d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5597 Reviewed-by: Thi N. Tran Reviewed-by: ADAM R. MUHLE Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/build/tools/addCopyright.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/build/tools/addCopyright.pl') diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl index 022b12214..fd984a9ba 100755 --- a/src/build/tools/addCopyright.pl +++ b/src/build/tools/addCopyright.pl @@ -407,6 +407,14 @@ sub filetype chomp $fileinfo; # Sorted by anticipated frequency of occurrence. + if ( $filename =~ m/\.xml$/i ) + # Added XML file to the top of the list because some comments in + # an XML file cause older versions of 'file' to incorrectly return + # "ASCII C++ program text" even though the file is obviously XML. + # Specifically we are seeing "