summaryrefslogtreecommitdiffstats
path: root/src/build/tools/addCopyright.pl
Commit message (Collapse)AuthorAgeFilesLines
* Enable the import tree to have hostboot prologsStephen Cprek2016-08-051-1222/+0
| | | | | | | | | | | | Also removed suffix from addCopyright script Change-Id: I83f633ee8a9e91eccf817756e8f4f19a6c89da27 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22460 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Remove the copyright_check that was adding submitter to prolog contributorcrgeddes2016-05-181-13/+11
| | | | | | | | | | | | | | | | | | | | | | | The addCopyright script was failing in hostboot-ci because when it was ran on standalone it would add the current submitter of the commit as a contributor and when it ran on ci it would add the author of the commit as a contributor. In the past these two have been the same, however if we were to merge a pull request from a third-party who was not and IBMer we would fail CI. Now it will only check the author if the copyright_check flag is set. Change-Id: I7a360a824d73a89872040932d2e7e3f8a334e770 RTC:117874 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24389 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Tested-by: Jenkins OP HW Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24719 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* Fix tool issues reported by OSX usersStephen Cprek2016-03-171-1/+1
| | | | | | | | | | | tail '--line' is not supported in BSD syntax Using smartmatch issues a warning in perl later than 5.017 so suppress warning if past that version. Change-Id: I2dc6a1913820f7d9644dd78dbc19ca113e7dcdb4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22212 Tested-by: Jenkins Server Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
* Stop copyright script from running against mirrored filesStephen Cprek2016-02-191-0/+12
| | | | Change-Id: Ie7bd8d86d0d0c9a67be2809712f151a3678db7b3
* Improve accuracy of copyright prolog moved files checkStephen Cprek2015-12-171-2/+2
| | | | | | | | | Change-Id: Ibeae50f0d06705dd5b471e8e05adceee2a404dc1 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22852 Tested-by: Jenkins Server Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix copyright script to handle mirrored filesStephen Cprek2015-12-171-3/+52
| | | | | | | | | | Change-Id: Ieaa34a747b1cfbea678586e54f8cfa950244e98b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22763 Tested-by: Jenkins Server Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix copyright prolog to handle moved filesStephen Cprek2015-12-111-2/+2
| | | | | | | | Change-Id: I6e28a1ff5dbc3150b63669656e2f30068a6bd040 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22519 Tested-by: Jenkins Server Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix how current author is verified in copyright checkStephen Cprek2015-11-231-39/+42
| | | | | | | | | | | Change-Id: I40b13e12c07577a5b1d79475f80a9727840fd1db Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22270 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix copyright prolog checking to compare entire blockStephen Cprek2015-10-271-208/+46
| | | | | | | | | | | | | | | This simplifies the error checking quite a bit, but will pick up even the smallest differences like whitespace. Change-Id: Id61a6f3332313bd6cdacad4130abbd448595dbd0 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20979 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Elizabeth Liner <eliner@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add environment error check for copyright scriptStephen Cprek2015-09-111-0/+4
| | | | | | | | | Change-Id: I84b32473250d0023df3e5d5cce9b1b46383d4e76 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20395 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Allow custom LICENSE_PROLOGS in subdirectoriesStephen Cprek2015-09-111-23/+78
| | | | | | | | | | | | | | | For files that cannot use the main LICENSE_PROLOG, a custom LICENSE_PROLOG can be used instead affecting the dir it lives in and all subdirectories. Change-Id: Ic6e837ed519590db0fcfbe30f6ebba620bb9555b Depends-on: I26b6f2326314936b0316f64272230730ecd3f9ee Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20266 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Generalize env vars, env setup, and copyright scriptsStephen Cprek2015-09-011-45/+34
| | | | | | | | | | | | | Methods ported over from code in EKB. Change-Id: I26b6f2326314936b0316f64272230730ecd3f9ee RTC: 126634 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17465 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Make ozlabs contribs part of IBM.Patrick Williams2015-07-171-4/+6
| | | | | | | | | | Change-Id: I91bb33c15a2bd93018e081a08a381604a96a582a Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18940 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix copyright tool for files with '+' in path.Patrick Williams2015-01-151-1/+1
| | | | | | | | Change-Id: I38a49a10fbacf3fc97214a24fb185655ab18ffc8 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15032 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Prevent duplicate contributors in the copyrightblockStephen Cprek2014-10-091-6/+8
| | | | | | | | | | Git merge was causing extra contributors to be added to the copyright block. This change fixes up any duplicates. Change-Id: If70eb791a3dda8cc820656e0e761f6758736b294 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13906 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for serial console.Patrick Williams2014-09-241-1/+3
| | | | | | | | | | Change-Id: Ia1b11f68cc4be175076562b7daf0291b14df498b Origin: Google Shared Technology RTC: 97495 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13250 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix bugs in copyright prolog scriptStephen Cprek2014-06-301-5/+22
| | | | | | | | | | | Add exists check to if statment Made sure current commiter is added to changes Change-Id: I1fa6f85827598cf2c755d1ded4610997ee8847c7 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11890 Reviewed-by: Brian Silver <bsilver@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add delimintor in copyright contributor string.Patrick Williams2014-06-301-4/+6
| | | | | | | Change-Id: Idc6485bab04eaec37e2660dbfbdac8eef11bd063 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11881 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update copyright signaturesStephen Cprek2014-06-301-17/+149
| | | | | | | | | | Change-Id: I5c454c97265c1093488ff815e2a3671333971cbc RTC: 106843 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11364 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update prologs on a few header files to Apache.Patrick Williams2014-06-231-0/+2
| | | | | | | Change-Id: Id5f3c2458080bc0e6d5aab65b56d1bbb3bf4ed94 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11637 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change addCopyright tool to use Apache license.Patrick Williams2014-05-211-23/+21
| | | | | | | | Change-Id: Ic27f12bf23592c7d51873d90dcce547a15419508 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11164 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Resolve beginning of year copyright failures.Patrick Williams2014-01-101-1/+3
| | | | | | | | Change-Id: If7b058cf5540729799790c521ff87a495f14b756 Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* INITPROC: Hostboot - SW234244 CAPP init updateThi Tran2013-12-041-1/+5
| | | | | | | | | Change-Id: Icacbf99e52df962d5b287e85af32fb9bb7f3024c CMVC-Coreq:907021 CQ:SW234244 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7325 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Updates to devtree for Stradale BUDean Sanner2013-10-101-0/+18
| | | | | | | Change-Id: I5d38b819d50e2f68e2d3b0de5ec3f020c49a9fc6 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6559 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Workaround bug in 'file' for XML copyright prolog.Patrick Williams2013-07-301-4/+8
| | | | | | | | | Change-Id: Iac89083b88546a3c4b59350e98c42893f320e71d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5597 Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fixed addCopyright.pl so does not add trailing whitespaceZane Shelley2012-09-241-31/+37
| | | | | | | | Change-Id: I75827ed028d7273b1ef590779df23fc89a65f567 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1735 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fixed bugs in addCopyright.plZane Shelley2012-09-101-12/+21
| | | | | | | | | | | Removed extra space at the end of inline comments. Fixed bug when matching COPYRIGHT line. Added support for .inl, .y, and .lex files. Change-Id: I760bb0f46ad9d28b7d935d6d0b10b46cc292eedb Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1648 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Added support in addCopyright.pl for PRD rule filesZane Shelley2012-08-221-3/+10
| | | | | | | Change-Id: Id99d42632fe7a9259e6ab3e8474b0aa3caa3a059 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1511 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Changed addCopyright.pl to mimic CMVC prologs.Zane Shelley2012-08-221-99/+122
| | | | | | | | | | | | | Each line in a prolog is now wrapped in block comment tags, for each file that requires block comments. This mimics how the prologs are created in CMVC. Also, some spacing issues where fixed to also match how CMVC generates prologs. Also, fixes a couple of bugs that removed blank lines after the prolog. Change-Id: Ia80f772db1ddfbf7d893f5156f9399d68c74b924 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1510 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix Copyright block scriptMark Wenning2012-05-301-268/+676
| | | | | | | | | | | | | | | | | | | | Task 37468, fixes defect 36864 - The prolog tags in hostboot are: IBM_PROLOG_BEGIN_TAG IBM_PROLOG_END If these are supposed to be consistent with the FSP prolog tags, "_TAG" is missing from the end tag. - Need to update old Copyright strings to end in "2012" (i.e. latest year) - Need a way to push new addCopyright.pl script to users - Check filename and compare with $Source: string, if filenames don't match, fix. - Need to add copyright dates from existing copyright blocks (i.e. FSP files.) - Fixes to comments RTC: 36864 Change-Id: I4842da42d3ba9abd454f19d1f25e5a8014c7addc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/937 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Clean up objdump error messages.Patrick Williams2012-01-121-1/+1
| | | | | | | | | Change-Id: I8f1022826a5a8c89aad0d3ffa97257f54804c711 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/608 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Improve Warning message for copyright validateMark Wenning2011-09-261-3/+5
| | | | | | | 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>
* RTC 3346: Allow SPless control of ISteps within HostbootMark Wenning2011-08-311-1/+3
| | | | | | | | | | | | | | | | | | - initial commit - add splesscommand and splessstatus objects - factoring - findTaskInfo, ExtTaskInfo structs - doxygen cleanup - unit tests - cleanup, final - review fixes - take out splesscommand and splessstatus classes - 2nd round of review changes Change-Id: I6dce18072b5464a4b8c34e5f4ff639e38afa53d0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/245 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* Copyright fix - skip deleted/renamed files, print warning for unknown filesMark Wenning2011-08-241-0/+7
| | | | | | | Change-Id: I7788928b2d9f518a07b6aa52f4863ee5cea2187d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/283 Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Tested-by: Jenkins Server
* copyright fixMark Wenning2011-08-241-1/+1
| | | | | | | Change-Id: I2db25484c72d6c4c2db1ed89c21c0d6dbc7d7d77 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/282 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* copyright fixMark Wenning2011-08-241-8/+9
| | | | | | | Change-Id: I2076dfcfe88b7c598ad24a64e1602df4961cc618 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/281 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* Fix copyright script - must not reject Unknown filesMark Wenning2011-08-241-2/+4
| | | | | | | Change-Id: Id6192aa75d77d006da4638d03ed71201773a890a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/280 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* Scripts to add copyright blocks on all files during a commitMark Wenning2011-08-241-0/+622
- created - run src/build/tools/setupgithooks.sh to config git to use these scripts - use git log to get the date of the first checkin of the file - if different, put "copyright 20xx - 2011" string. - modify copyright block to say "HostBoot" instead of FSP - add copyright-check.sh script to run during gerrit trigger - new requirements: use templates from "FSP Clearcase Architecture" - use C++ style comments for C, H files - add xml section - set up copyright-check.sh and cxxtest-start.sh Change-Id: Id1e5d78dc0498fe4ef43eadbea81d6e6c5fab413 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/199 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
OpenPOWER on IntegriCloud