diff options
| author | Stephen Cprek <smcprek@us.ibm.com> | 2016-11-17 11:08:46 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-12-07 23:32:51 -0500 |
| commit | 4bf1556d4de82e0d9983cebb926be1457c4a5737 (patch) | |
| tree | 141763ac764c4abde6586dbe0658f7b2d4d1754b /src/build/tools/addCopyright | |
| parent | 1ceafcd419b831ca9e7fac5c7ed96b58157a0bcd (diff) | |
| download | talos-hostboot-4bf1556d4de82e0d9983cebb926be1457c4a5737.tar.gz talos-hostboot-4bf1556d4de82e0d9983cebb926be1457c4a5737.zip | |
Re-order filetype if blocks so Makefile doesn't end up as c program text
For some reason 'file src/usr/errl/makefile' results in c progrm text vs
makefile type.
Change-Id: Ia85acb82f5dd4ec75ee6bccd17511a4d0a67e1e4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32838
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/tools/addCopyright')
| -rwxr-xr-x | src/build/tools/addCopyright | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/build/tools/addCopyright b/src/build/tools/addCopyright index add7a6bbe..5e1c9216c 100755 --- a/src/build/tools/addCopyright +++ b/src/build/tools/addCopyright @@ -467,6 +467,24 @@ sub filetype { return "Initfile" } + if ($filename =~ m/\.s$/i) + { + return "Assembly"; + } + if (($filename =~ m/Makefile$/i) or + ($filename =~ m/\.mk$/i)) + { + return "Makefile"; + } + if ( $filename =~ m/\.am$/i ) + { + return "Automake"; + } + if ( ($filename =~ m/configure\.ac$/i) + ||($filename =~ m/Makefile\.in$/i) ) + { + return "Autoconf"; + } if ( ( $filename =~ m/\.[cht]$/i ) ||( $filename =~ m/\.[cht]\+\+$/i ) ||( $filename =~ m/\.[cht]pp$/i ) @@ -488,24 +506,6 @@ sub filetype { return "Perl"; } - if ($filename =~ m/\.s$/i) - { - return "Assembly"; - } - if (($filename =~ m/Makefile$/i) or - ($filename =~ m/\.mk$/i)) - { - return "Makefile"; - } - if ( $filename =~ m/\.am$/i ) - { - return "Automake"; - } - if ( ($filename =~ m/configure\.ac$/i) - ||($filename =~ m/Makefile\.in$/i) ) - { - return "Autoconf"; - } if ( ( $filename =~ m/\.[kc]{0,1}sh$/i ) ||( $filename =~ m/\.bash$/i ) ||( $fileinfo =~ m/shell script/i ) |

