Update relic to cope with lack of space before intermediate comment characters like "*".
git-svn-id: svn://10.0.0.236/trunk@258983 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0615d94be7
commit
48ca3e7768
@ -8,7 +8,11 @@
|
||||
# to make them all use the same variant of each name.
|
||||
#
|
||||
# Procedure:
|
||||
# Need to be in the top-level dir otherwise relic exclusions don't work.
|
||||
# Edit relic to set quiet to 1 on line 1471 or thereabouts
|
||||
# relic -I -f * > names.txt
|
||||
# Tidy up names.txt
|
||||
# and make one unified file if you ran relic over multiple trees.
|
||||
# make-id-list < names.txt > final.txt
|
||||
|
||||
my %equivalents = (
|
||||
@ -24,22 +28,26 @@ my %equivalents = (
|
||||
"IBM Corp" => "IBM Corporation",
|
||||
"International Business Machines Corporation" => "IBM Corporation",
|
||||
|
||||
"Mozilla.com" => "Mozilla Corporation",
|
||||
"Mozilla Corp" => "Mozilla Corporation",
|
||||
|
||||
"None" => "Mozilla Foundation",
|
||||
"a mozilla.org contributor" => "Mozilla Foundation",
|
||||
"person recorded in the version control logs" => "Mozilla Foundation",
|
||||
"Mozilla" => "Mozilla Foundation",
|
||||
"Mozilla.com" => "Mozilla Corporation",
|
||||
"Mozilla.org" => "Mozilla Foundation",
|
||||
"Mozilla Organization" => "Mozilla Foundation",
|
||||
"mozilla.org" => "Mozilla Foundation",
|
||||
|
||||
"example Inc" => "Mozilla Foundation",
|
||||
"SeaMonkey team" => "Mozilla Foundation",
|
||||
"mozilla.org SeaMonkey project" => "Mozilla Foundation",
|
||||
"SeaMonkey project" => "Mozilla Foundation",
|
||||
"SeaMonkey project at mozilla.org" => "Mozilla Foundation",
|
||||
"Mozilla Calendar Squad" => "Mozilla Foundation",
|
||||
"mozilla.org code" => "Mozilla Foundation",
|
||||
|
||||
"Mozilla Messaging Corporation" => "Mozilla Messaging",
|
||||
|
||||
"Mozilla Corp" => "Mozilla Corporation",
|
||||
|
||||
"Netscape" => "Netscape Communications Corporation",
|
||||
"Netscape Corp" => "Netscape Communications Corporation",
|
||||
"Netscape Communications" => "Netscape Communications Corporation",
|
||||
@ -70,6 +78,7 @@ my %equivalents = (
|
||||
|
||||
"bmlk\@gmx.de" => "Bernd Mielke",
|
||||
"davel\@mozilla.com" => "Dave Liebreich",
|
||||
"dschaffe\@adobe.com" => "Dan Schaffer",
|
||||
"Digital Creations 2" => "Digital Creations 2 Inc",
|
||||
"Douglas F. Turner II" => "Doug Turner",
|
||||
"Kenneth Herron" => "Ken Herron",
|
||||
@ -88,6 +97,8 @@ my %equivalents = (
|
||||
"Richard L Walsh" => "Richard L. Walsh",
|
||||
"timeless" => "Josh Soref",
|
||||
"Olivier Parniere BT Global Services / Etat francais Ministere de la Defense" => "Olivier Parniere",
|
||||
"Craig Toppper" => "Craig Topper",
|
||||
"Mook" => "Mark 'Mook' Yen",
|
||||
|
||||
"Frank Schoenheit" => "Frank Schönheit",
|
||||
"Frank Schönheit" => "Frank Schönheit",
|
||||
@ -98,13 +109,9 @@ my %equivalents = (
|
||||
"Vincent Béron" => "Vincent Béron",
|
||||
"Tomas Mšller" => "Tomas Müller",
|
||||
"Dão Gottwald" => "Dão Gottwald",
|
||||
"László Németh" => "László N&eacutre;meth",
|
||||
"László Németh" => "László Németh",
|
||||
"Björn Jacke" => "Björn Jacke",
|
||||
|
||||
"example Inc" => "Mozilla Foundation",
|
||||
"SeaMonkey team" => "Mozilla Foundation",
|
||||
"person recorded in the version control logs" => "Mozilla Foundation",
|
||||
"None" => "Mozilla Foundation"
|
||||
"Žiga Sancin" => "Žiga Sancin",
|
||||
);
|
||||
|
||||
# 'indevs' == "Initial Developers"
|
||||
@ -119,13 +126,14 @@ while (<>)
|
||||
# Chop off email addresses and suchlike
|
||||
$indev =~ s/[<,\(].*$//;
|
||||
$indev =~ s/^The\s+//i;
|
||||
$indev =~ s/\.?\s*Portions created.*$//;
|
||||
|
||||
# Trim whitespace
|
||||
$indev =~ s/^\s*//;
|
||||
$indev =~ s/\s*$//;
|
||||
|
||||
$indev = $equivalents{$indev} || $indev;
|
||||
$indevs{$indev} = 1;
|
||||
$indevs{$indev} = 1 if $indev;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -345,24 +345,24 @@ _g_basename_to_comment_info = {
|
||||
"README": ([""], ["#"]),
|
||||
"copyright": ([""], ),
|
||||
|
||||
"xptcstubs_asm_ppc_darwin.s.m4": (["/*", " *", "*/"], ),
|
||||
"xptcstubs_asm_mips.s.m4": (["/*", " *", "*/"], ),
|
||||
"xptcstubs_asm_ppc_darwin.s.m4": (["/*", "*", "*/"], ),
|
||||
"xptcstubs_asm_mips.s.m4": (["/*", "*", "*/"], ),
|
||||
|
||||
"nsIDocCharsetTest.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIFontListTest.txt": (["<!--", " -", "-->"], ),
|
||||
"ComponentListTest.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest1.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest2.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest3.txt": (["<!--", " -", "-->"], ),
|
||||
"plugins.txt": (["<!--", " -", "-->"], ),
|
||||
"NsISHistoryTestCase1.txt": (["<!--", " -", "-->"], ),
|
||||
"EmbedSmokeTest.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIDocCharsetTest.txt": (["<!--", "-", "-->"], ),
|
||||
"nsIFontListTest.txt": (["<!--", "-", "-->"], ),
|
||||
"ComponentListTest.txt": (["<!--", "-", "-->"], ),
|
||||
"nsIWebBrowserPersistTest1.txt": (["<!--", "-", "-->"], ),
|
||||
"nsIWebBrowserPersistTest2.txt": (["<!--", "-", "-->"], ),
|
||||
"nsIWebBrowserPersistTest3.txt": (["<!--", "-", "-->"], ),
|
||||
"plugins.txt": (["<!--", "-", "-->"], ),
|
||||
"NsISHistoryTestCase1.txt": (["<!--", "-", "-->"], ),
|
||||
"EmbedSmokeTest.txt": (["<!--", "-", "-->"], ),
|
||||
|
||||
"lineterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"XMLterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"BrowserView.cpp.mod": (["/*", " *", "*/"], ),
|
||||
"header_template": (["/*", " *", "*/"], ),
|
||||
"cpp_template": (["/*", " *", "*/"], ),
|
||||
"lineterm_LICENSE": (["/*", "*", "*/"], ),
|
||||
"XMLterm_LICENSE": (["/*", "*", "*/"], ),
|
||||
"BrowserView.cpp.mod": (["/*", "*", "*/"], ),
|
||||
"header_template": (["/*", "*", "*/"], ),
|
||||
"cpp_template": (["/*", "*", "*/"], ),
|
||||
|
||||
"abcFormat470.txt": (["//"], ),
|
||||
"opcodes.tbl": (["//"], ),
|
||||
@ -379,70 +379,70 @@ _g_ext_to_comment_info = {
|
||||
".FP": (["", ]),
|
||||
".spec": (["", ]),
|
||||
|
||||
".CPP": (["/*", " *", "*/"], ),
|
||||
".cpp": (["/*", " *", "*/"], ),
|
||||
".H": (["/*", " *", "*/"], ),
|
||||
".h": (["/*", " *", "*/"], ),
|
||||
".hxx": (["/*", " *", "*/"], ),
|
||||
".c": (["/*", " *", "*/"], ),
|
||||
".css": (["/*", " *", "*/"], ['#']),
|
||||
".js": (["/*", " *", "*/"], ['#']),
|
||||
".idl": (["/*", " *", "*/"], ),
|
||||
".ut": (["/*", " *", "*/"], ),
|
||||
".rc": (["/*", " *", "*/"], ),
|
||||
".rc2": (["/*", " *", "*/"], ),
|
||||
".RC": (["/*", " *", "*/"], ),
|
||||
".Prefix": (["/*", " *", "*/"], ),
|
||||
".prefix": (["/*", " *", "*/"], ),
|
||||
".cfg": (["/*", " *", "*/"], ["#"]),
|
||||
".cp": (["/*", " *", "*/"], ),
|
||||
".cs": (["/*", " *", "*/"], ),
|
||||
".java": (["/*", " *", "*/"], ),
|
||||
".jst": (["/*", " *", "*/"], ),
|
||||
".tbl": (["/*", " *", "*/"], ),
|
||||
".tab": (["/*", " *", "*/"], ),
|
||||
".cc": (["/*", " *", "*/"], ),
|
||||
".msg": (["/*", " *", "*/"], ),
|
||||
".y": (["/*", " *", "*/"], ),
|
||||
".r": (["/*", " *", "*/"], ),
|
||||
".mm": (["/*", " *", "*/"], ),
|
||||
".x-ccmap":(["/*", " *", "*/"], ),
|
||||
".ccmap": (["/*", " *", "*/"], ),
|
||||
".sql": (["/*", " *", "*/"], ),
|
||||
".pch++": (["/*", " *", "*/"], ),
|
||||
".xpm": (["/*", " *", "*/"], ),
|
||||
".uih": (["/*", " *", "*/"], ),
|
||||
".uil": (["/*", " *", "*/"], ),
|
||||
".ccmap": (["/*", " *", "*/"], ),
|
||||
".map": (["/*", " *", "*/"], ),
|
||||
".win98": (["/*", " *", "*/"], ),
|
||||
".php": (["/*", " *", "*/"], ),
|
||||
".m": (["/*", " *", "*/"], ),
|
||||
".jnot": (["/*", " *", "*/"], ),
|
||||
".l": (["/*", " *", "*/"], ),
|
||||
".htp": (["/*", " *", "*/"], ),
|
||||
".xs": (["/*", " *", "*/"], ),
|
||||
".as": (["/*", " *", "*/"], ),
|
||||
".api": (["/*", " *", "*/"], ['#']),
|
||||
".CPP": (["/*", "*", "*/"], ),
|
||||
".cpp": (["/*", "*", "*/"], ),
|
||||
".H": (["/*", "*", "*/"], ),
|
||||
".h": (["/*", "*", "*/"], ),
|
||||
".hxx": (["/*", "*", "*/"], ),
|
||||
".c": (["/*", "*", "*/"], ),
|
||||
".css": (["/*", "*", "*/"], ['#']),
|
||||
".js": (["/*", "*", "*/"], ['#']),
|
||||
".idl": (["/*", "*", "*/"], ),
|
||||
".ut": (["/*", "*", "*/"], ),
|
||||
".rc": (["/*", "*", "*/"], ),
|
||||
".rc2": (["/*", "*", "*/"], ),
|
||||
".RC": (["/*", "*", "*/"], ),
|
||||
".Prefix": (["/*", "*", "*/"], ),
|
||||
".prefix": (["/*", "*", "*/"], ),
|
||||
".cfg": (["/*", "*", "*/"], ["#"]),
|
||||
".cp": (["/*", "*", "*/"], ),
|
||||
".cs": (["/*", "*", "*/"], ),
|
||||
".java": (["/*", "*", "*/"], ),
|
||||
".jst": (["/*", "*", "*/"], ),
|
||||
".tbl": (["/*", "*", "*/"], ),
|
||||
".tab": (["/*", "*", "*/"], ),
|
||||
".cc": (["/*", "*", "*/"], ),
|
||||
".msg": (["/*", "*", "*/"], ),
|
||||
".y": (["/*", "*", "*/"], ),
|
||||
".r": (["/*", "*", "*/"], ),
|
||||
".mm": (["/*", "*", "*/"], ),
|
||||
".x-ccmap":(["/*", "*", "*/"], ),
|
||||
".ccmap": (["/*", "*", "*/"], ),
|
||||
".sql": (["/*", "*", "*/"], ),
|
||||
".pch++": (["/*", "*", "*/"], ),
|
||||
".xpm": (["/*", "*", "*/"], ),
|
||||
".uih": (["/*", "*", "*/"], ),
|
||||
".uil": (["/*", "*", "*/"], ),
|
||||
".ccmap": (["/*", "*", "*/"], ),
|
||||
".map": (["/*", "*", "*/"], ),
|
||||
".win98": (["/*", "*", "*/"], ),
|
||||
".php": (["/*", "*", "*/"], ),
|
||||
".m": (["/*", "*", "*/"], ),
|
||||
".jnot": (["/*", "*", "*/"], ),
|
||||
".l": (["/*", "*", "*/"], ),
|
||||
".htp": (["/*", "*", "*/"], ),
|
||||
".xs": (["/*", "*", "*/"], ),
|
||||
".as": (["/*", "*", "*/"], ),
|
||||
".api": (["/*", "*", "*/"], ['#']),
|
||||
|
||||
".html": (["<!--", " -", "-->"], ["#"]),
|
||||
".xml": (["<!--", " -", "-->"], ["#"]),
|
||||
".xbl": (["<!--", " -", "-->"], ["#"]),
|
||||
".xsl": (["<!--", " -", "-->"], ),
|
||||
".xul": (["<!--", " -", "-->"], ["#"]),
|
||||
".dtd": (["<!--", " -", "-->"], ["#"]),
|
||||
".rdf": (["<!--", " -", "-->"], ["#"]),
|
||||
".htm": (["<!--", " -", "-->"], ),
|
||||
".out": (["<!--", " -", "-->"], ),
|
||||
".resx": (["<!--", " -", "-->"], ),
|
||||
".bl": (["<!--", " -", "-->"], ),
|
||||
".xif": (["<!--", " -", "-->"], ),
|
||||
".xhtml":(["<!--", " -", "-->"], ["#"]),
|
||||
".html": (["<!--", "-", "-->"], ["#"]),
|
||||
".xml": (["<!--", "-", "-->"], ["#"]),
|
||||
".xbl": (["<!--", "-", "-->"], ["#"]),
|
||||
".xsl": (["<!--", "-", "-->"], ),
|
||||
".xul": (["<!--", "-", "-->"], ["#"]),
|
||||
".dtd": (["<!--", "-", "-->"], ["#"]),
|
||||
".rdf": (["<!--", "-", "-->"], ["#"]),
|
||||
".htm": (["<!--", "-", "-->"], ),
|
||||
".out": (["<!--", "-", "-->"], ),
|
||||
".resx": (["<!--", "-", "-->"], ),
|
||||
".bl": (["<!--", "-", "-->"], ),
|
||||
".xif": (["<!--", "-", "-->"], ),
|
||||
".xhtml":(["<!--", "-", "-->"], ["#"]),
|
||||
|
||||
".inc": (["<!--", " -", "-->"],
|
||||
".inc": (["<!--", "-", "-->"],
|
||||
["#"],
|
||||
["@!"],
|
||||
["/*", " *", "*/"]),
|
||||
["/*", "*", "*/"]),
|
||||
|
||||
".properties": (["#"], ),
|
||||
".win": (["#"], ),
|
||||
@ -524,7 +524,7 @@ _g_ext_to_comment_info = {
|
||||
".3x": (['.\\"'], ),
|
||||
|
||||
# What a mess...
|
||||
".s": (["#"], ["//"], ["/*", " *", "*/"], ["!"], [";"], ["/"]),
|
||||
".s": (["#"], ["//"], ["/*", "*", "*/"], ["!"], [";"], ["/"]),
|
||||
}
|
||||
_g_shebang_pattern_to_comment_info = [
|
||||
(re.compile(ur'\A#!.*/bin/(ba)?sh.*$', re.IGNORECASE), (["#"], )),
|
||||
@ -898,8 +898,9 @@ def _get_license_info(filename, show_initial=0, quick=0):
|
||||
lines = content.splitlines()
|
||||
for comment_delims in comment_delim_sets:
|
||||
if len(comment_delims) == 3:
|
||||
prefix_pattern = "%s|%s|" % (re.escape(comment_delims[0]),
|
||||
re.escape(comment_delims[1]))
|
||||
# Note: allow for whitespace before continuation character
|
||||
prefix_pattern = "%s|\s*%s|" % (re.escape(comment_delims[0]),
|
||||
re.escape(comment_delims[1]))
|
||||
suffix_pattern = "%s" % re.escape(comment_delims[2])
|
||||
elif len(comment_delims) == 2:
|
||||
prefix_pattern = "%s|" % re.escape(comment_delims[0])
|
||||
@ -1468,7 +1469,7 @@ def _make_backup_path(path):
|
||||
raise RelicError("Could not find an unused backup path for '%s'." % path)
|
||||
|
||||
|
||||
def _relicensing_error(err, path, cache=None, quiet=0):
|
||||
def _relicensing_error(err, path, cache=None, quiet=1):
|
||||
"""Handle an error during relicensing.
|
||||
|
||||
"err" may be an error string or an exception instance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user