webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
devtools.licenseupdater Namespace Reference

Functions

def update_license (path, dry_run, show_diff)
 
def update_license_in_source_directories (source_dirs, dry_run, show_diff)
 
def main ()
 

Variables

string LICENSE_BEGIN = "// Copyright "
 
string BRIEF_LICENSE
 

Detailed Description

Updates the license text in source file.

Function Documentation

◆ main()

def devtools.licenseupdater.main ( void  )

◆ update_license()

def devtools.licenseupdater.update_license (   path,
  dry_run,
  show_diff 
)
Update the license statement in the specified file.
Parameters:
  path: path of the C++ source file to update.
  dry_run: if True, just print the path of the file that would be updated,
           but don't change it.
  show_diff: if True, print the path of the file that would be modified,
             as well as the change made to the file. 

◆ update_license_in_source_directories()

def devtools.licenseupdater.update_license_in_source_directories (   source_dirs,
  dry_run,
  show_diff 
)
Updates license text in C++ source files found in directory source_dirs.
Parameters:
  source_dirs: list of directory to scan for C++ sources. Directories are
               scanned recursively.
  dry_run: if True, just print the path of the file that would be updated,
           but don't change it.
  show_diff: if True, print the path of the file that would be modified,
             as well as the change made to the file. 

Variable Documentation

◆ BRIEF_LICENSE

string devtools.licenseupdater.BRIEF_LICENSE
Initial value:
1 = LICENSE_BEGIN + """2007-2010 Baptiste Lepilleur
2 // Distributed under MIT license, or public domain if desired and
3 // recognized in your jurisdiction.
4 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5 
6 """.replace('\r\n','\n')
replace_if< Sequence, std::is_same< _1, pin< OldType > >, NewType > replace
Definition: Brigand.h:1632

◆ LICENSE_BEGIN

string devtools.licenseupdater.LICENSE_BEGIN = "// Copyright "