1
1
Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Ralph Castain
8ae55429bc Be a little less OMPI-centric on checking for the top-level directory
Look for .git directory

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
2017-02-22 11:29:51 -08:00
Ralph Castain
665850ed69 Use regex to define the protected files
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
2017-02-18 06:45:13 -08:00
Ralph Castain
2f0aec709a Protect the embedded libraries when updating copyrights - we shouldn't be overwriting their copyrights with our own
bot:notest

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
2017-02-18 06:45:13 -08:00
Ralph Castain
5b1484a836 Implement the backend support for process-generated event notification 2016-10-08 09:24:28 -07:00
Ralph Castain
3acbc92efd If everyone is going to start using this script, then let's at least line up the entries 2016-09-27 09:05:05 -07:00
Ralph Castain
869041f770 Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
Jeff Squyres
173c046617 build: add Automake-like silent/verbose macros for "ln -s ..." operations
Also, since I put some of the macros for these silent/verbose rules up
in the top-level Makefile.man-page-rules file, I renamed it to
Makefile.ompi-rules.

I've had this sitting around for a while; now seems like as good a
time as any to commit it.

This commit was SVN r31271.
2014-03-28 18:24:32 +00:00
Dave Goodell
5626371196 update-my-copyright.pl now works with Git
This script now takes command line options:
```
./update-my-copyright.pl [options]

--help | -h          This help message
--quiet | -q         Only output critical messages to stdout
--check-only         exit(111) if there are files with copyrights to edit
--search-name=NAME   Set search name to NAME
--formal-same=NAME   Set formal name to NAME
```

The `--check-only` and `--quiet` options are suitable for use in a git
pre-commit script to check for out of date copyright headers.

Reviewed by jsquyres

This commit was SVN r28742.
2013-07-09 14:39:41 +00:00
Jeff Squyres
dc47473e6d Update the update-my-copyright.pl script to also be able to handle git
checkouts.

This commit was SVN r28318.
2013-04-09 22:08:03 +00:00
Jeff Squyres
a5b7efc084 Fix a few bugs for uncommon cases:
* join() should use '', not //
 * Only use the ''first'' $COPYRIGHT$ and my_search_name instances

This commit was SVN r27963.
2013-01-29 15:54:57 +00:00
Jeff Squyres
164eec380c Don't bother checking new directories themselves for copyright tokens
(i.e., only look in the files *in* new directories -- not the
directories themselves).

This commit was SVN r26282.
2012-04-18 14:52:41 +00:00
Jeff Squyres
d95f2361f8 Handle "svn st" output, even if it has a "+" in the middle of the line
This commit was SVN r24915.
2011-07-21 22:42:03 +00:00
Jeff Squyres
9306bf259b Make it a little more friendly towards svn+hg trees
This commit was SVN r24341.
2011-02-02 14:41:36 +00:00
Jeff Squyres
08dd20c834 Short version:
This script automates the tedious task of updating copyright notices
in the tops of OMPI/ORTE/OPAL source files before committing back to
the respository.  Set the environment variable
OMPI_COPYRIGHT_SEARCH_NAME to a short (case-insensitive) name that
indicates your copyright line (e.g., "cisco"), and set the env
variable OMPI_COPYRIGHT_FORMAL_NAME with your organization's formal
name and copyright statement (e.g., "Cisco Systems, Inc.  All rights
reserved.") before running the script.

More details:

This is a simple script to traverse the tree looking for added and
changed files (via "svn st ." or "hg st .", depending on what meta
directory is found in this tree).  Note that the search starts in
the current directory -- not the top-level directory.

All added and changed files are examined.  If the special
"$COPYRIGHT$" token is found, then lines above that token are
examined to find the "search" copyright name.

- If the search name is found, that line is examined to see if the
  current year is in the copyright year range.  If it is not, the line
  is modified to include the current year.
- If the search name is not found, a new line is created in the
  copyright block of the file using the formal name and the current
  year.

NOTE: this script currently doesn't handle multi-line copyright
statements, such as:
 
Copyright (c) 2010 University of Blabbityblah and the Trustees of
                   Schblitbittyboo.  All rights reserved.

Someone could certainly extend this script to do so, if they cared
(my organizations' copyright fits on a single line, so I wasn't
motivated to handle the multi-line case :-) ).

This commit was SVN r23742.
2010-09-12 10:42:05 +00:00