зеркало из https://github.com/mozilla/pjs.git
Further updates to deal with current codebase, and to note progress
This commit is contained in:
Родитель
9078f66e6e
Коммит
037cb48294
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
|
@ -147,7 +147,7 @@ log = logging.getLogger("relic")
|
|||
|
||||
#---- globals
|
||||
|
||||
_version_ = (0, 6, 9)
|
||||
_version_ = (0, 7, 0)
|
||||
|
||||
# When processing files, 'relic' skips files and directories according
|
||||
# to these settings. Note: files identified in .cvsignore files are also
|
||||
|
@ -160,8 +160,6 @@ _g_skip_file_basenames = [
|
|||
"config.sub",
|
||||
# Auto-generated from other files
|
||||
"configure",
|
||||
# Public Domain
|
||||
"nspr.m4",
|
||||
]
|
||||
_g_skip_files = [
|
||||
# Files containing copies of the licence which confuse the script
|
||||
|
@ -190,7 +188,14 @@ _g_skip_files = [
|
|||
# TODO: Update
|
||||
"xpfe/global/resources/content/license.html",
|
||||
"toolkit/content/license.html",
|
||||
###########################################################################
|
||||
|
||||
# Files the script can't handle
|
||||
# TODO: Add license block
|
||||
"testing/performance/win32/page_load_test/base/lxr.mozilla.org/20001028.html.orig",
|
||||
"testing/performance/win32/page_load_test/base/lxr.mozilla.org/index.html",
|
||||
"tools/performance/pageload/base/lxr.mozilla.org/index.html",
|
||||
|
||||
###########################################################################
|
||||
# Everything in _g_skip_files below this line needs no further work.
|
||||
###########################################################################
|
||||
|
||||
|
@ -226,8 +231,15 @@ _g_skip_files = [
|
|||
# Not sure what to do with this...
|
||||
"gfx/cairo/stdint.diff",
|
||||
|
||||
# Same license as files distributed with
|
||||
# GPL with autoconf exception (same license as files distributed with)
|
||||
"build/autoconf/codeset.m4",
|
||||
"toolkit/airbag/airbag/autotools/depcomp",
|
||||
"toolkit/airbag/airbag/autotools/missing",
|
||||
"toolkit/airbag/airbag/autotools/ltmain.sh",
|
||||
"js/tamarin/pcre/ltmain.sh",
|
||||
|
||||
# Public domain or equivalent
|
||||
"nsprpub/config/nspr.m4",
|
||||
|
||||
# GSSAPI has BSD-like licence requiring some attribution
|
||||
"extensions/auth/gssapi.h",
|
||||
|
@ -245,7 +257,8 @@ _g_skip_dirs = [
|
|||
###########################################################################
|
||||
# Everything in_g_skip_dirs below this line needs no further work. ###########################################################################
|
||||
|
||||
# Test files for this script; they cause it to crash!
|
||||
# This script, and its test files which cause it to crash!
|
||||
"tools/relic/relic",
|
||||
"tools/relic/test",
|
||||
|
||||
# License template files
|
||||
|
@ -288,9 +301,10 @@ _g_skip_dirs = [
|
|||
]
|
||||
|
||||
_g_basename_to_comment_info = {
|
||||
"configure": (["dnl"], ),
|
||||
|
||||
"Makefile": (["#"], ),
|
||||
"makefile": (["#"], ),
|
||||
"configure": (["dnl"], ),
|
||||
"nfspwd": (["#"], ),
|
||||
"typemap": (["#"], ),
|
||||
"xmplflt.conf": (["#"], ),
|
||||
|
@ -317,6 +331,16 @@ _g_basename_to_comment_info = {
|
|||
".cshrc": (["#"], ),
|
||||
"MANIFEST": (["#"], ),
|
||||
"mozconfig": (["#"], ),
|
||||
"makecommon": (["#"], ),
|
||||
"bld_awk_pkginfo": (["#"], ),
|
||||
"prototype_i86pc": (["#"], ),
|
||||
"pkgdepend_5_6": (["#"], ),
|
||||
"awk_pkginfo-i386": (["#"], ),
|
||||
"awk_pkginfo-sparc": (["#"], ),
|
||||
"pkgdepend_64bit": (["#"], ),
|
||||
"WIN32": (["#"], ),
|
||||
"WIN16": (["#"], ),
|
||||
"Makefile.linux": (["#"], ),
|
||||
|
||||
"README": ([""], ["#"]),
|
||||
"copyright": ([""], ),
|
||||
|
@ -324,28 +348,30 @@ _g_basename_to_comment_info = {
|
|||
"xptcstubs_asm_ppc_darwin.s.m4": (["/*", " *", "*/"], ),
|
||||
"xptcstubs_asm_mips.s.m4": (["/*", " *", "*/"], ),
|
||||
|
||||
"WIN32": (["#"], ),
|
||||
"WIN16": (["#"], ),
|
||||
"nsIDocCharsetTest.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIFontListTest.txt": (["<!--", " -", "-->"], ),
|
||||
"ComponentListTest.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest1.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest2.txt": (["<!--", " -", "-->"], ),
|
||||
"nsIWebBrowserPersistTest3.txt": (["<!--", " -", "-->"], ),
|
||||
"lineterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"XMLterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"Makefile.linux": (["#"], ),
|
||||
"BrowserView.cpp.mod": (["/*", " *", "*/"], ),
|
||||
"header_template": (["/*", " *", "*/"], ),
|
||||
"cpp_template": (["/*", " *", "*/"], ),
|
||||
"plugins.txt": (["<!--", " -", "-->"], ),
|
||||
"NsISHistoryTestCase1.txt": (["<!--", " -", "-->"], ),
|
||||
"EmbedSmokeTest.txt": (["<!--", " -", "-->"], ),
|
||||
|
||||
"lineterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"XMLterm_LICENSE": (["/*", " *", "*/"], ),
|
||||
"BrowserView.cpp.mod": (["/*", " *", "*/"], ),
|
||||
"header_template": (["/*", " *", "*/"], ),
|
||||
"cpp_template": (["/*", " *", "*/"], ),
|
||||
|
||||
"abcFormat470.txt": (["//"], ),
|
||||
"opcodes.tbl": (["//"], ),
|
||||
}
|
||||
|
||||
_g_ext_to_comment_info = {
|
||||
".txt": (["##"], ["#"], []),
|
||||
".TXT": (["##"], ["#"], []),
|
||||
|
||||
".doc": ([""], ),
|
||||
".build": ([""], ),
|
||||
".1st": ([""], ),
|
||||
|
@ -367,7 +393,7 @@ _g_ext_to_comment_info = {
|
|||
".RC": (["/*", " *", "*/"], ),
|
||||
".Prefix": (["/*", " *", "*/"], ),
|
||||
".prefix": (["/*", " *", "*/"], ),
|
||||
".cfg": (["/*", " *", "*/"], ),
|
||||
".cfg": (["/*", " *", "*/"], ["#"]),
|
||||
".cp": (["/*", " *", "*/"], ),
|
||||
".cs": (["/*", " *", "*/"], ),
|
||||
".java": (["/*", " *", "*/"], ),
|
||||
|
@ -404,7 +430,6 @@ _g_ext_to_comment_info = {
|
|||
".xsl": (["<!--", " -", "-->"], ),
|
||||
".xul": (["<!--", " -", "-->"], ["#"]),
|
||||
".dtd": (["<!--", " -", "-->"], ["#"]),
|
||||
|
||||
".rdf": (["<!--", " -", "-->"], ["#"]),
|
||||
".htm": (["<!--", " -", "-->"], ),
|
||||
".out": (["<!--", " -", "-->"], ),
|
||||
|
@ -466,6 +491,12 @@ _g_ext_to_comment_info = {
|
|||
".com": (["#"], ),
|
||||
".dat": (["#"], ),
|
||||
".rpm": (["#"], ),
|
||||
".nsi": (["#"], ),
|
||||
".nsh": (["#"], ),
|
||||
".template": (["#"], ),
|
||||
".ldkd": (["#"], ),
|
||||
".ldku": (["#"], ),
|
||||
".arm": (["#"], ),
|
||||
|
||||
".tdf": ([";"], ),
|
||||
".def": ([";+#"], [";"]),
|
||||
|
@ -493,6 +524,7 @@ _g_ext_to_comment_info = {
|
|||
}
|
||||
_g_shebang_pattern_to_comment_info = [
|
||||
(re.compile(ur'\A#!.*/bin/sh.*$', re.IGNORECASE), (["#"], )),
|
||||
(re.compile(ur'\A#!.*/bin/bash.*$', re.IGNORECASE), (["#"], )),
|
||||
(re.compile(ur'\A#!.*perl.*$', re.IGNORECASE), (["#"], )),
|
||||
(re.compile(ur'\A#!.*php.*$', re.IGNORECASE), (["#"], )),
|
||||
(re.compile(ur'\A#!.*python.*$', re.IGNORECASE), (["#"], )),
|
||||
|
|
Загрузка…
Ссылка в новой задаче