Remove ChangeLog references from Makefile and .gitattribute
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 29 Jan 2016 20:40:39 +0000 (21:40 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 29 Jan 2016 20:41:48 +0000 (21:41 +0100)
33 files changed:
.gitattributes
data/Makefile.am
eglib/Makefile.am
mcs/CodingStyle
mcs/Makefile
mcs/class/Commons.Xml.Relaxng/Makefile
mcs/class/I18N/Makefile
mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/.gitattributes
mcs/class/Mainsoft.Web/Mainsoft.Web.Profile/.gitattributes
mcs/class/Mainsoft.Web/Mainsoft.Web.Security/.gitattributes
mcs/class/Mono.Data.Sqlite/Makefile
mcs/class/Mono.Directory.LDAP/.gitattributes
mcs/class/Mono.Security.Win32/Makefile
mcs/class/System.Data/Makefile
mcs/class/System.Data/Test/Mono.Data.SqlExpressions/.gitattributes
mcs/class/System.DirectoryServices/.gitattributes
mcs/class/System.Drawing/Test/DrawingTest/Test/.gitattributes
mcs/class/System.EnterpriseServices/Makefile
mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/.gitattributes
mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/.gitattributes
mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Nice/.gitattributes
mcs/class/System.Windows.Forms/System.Windows.Forms.WebBrowserDialogs/.gitattributes
mcs/class/System.Windows.Forms/Test/System.Windows.Forms.Layout/.gitattributes
mcs/class/System.XML/Makefile
mcs/class/System/Makefile
mcs/class/WindowsBase/.gitattributes
mcs/class/corlib/Mono.Globalization.Unicode/downloaded/.gitattributes
mcs/ilasm/Makefile
mcs/tools/pdb2mdb/.gitattributes
mono/arch/Makefile.am
mono/utils/Makefile.am
scripts/commits-to-changelog.py [deleted file]
tools/monograph/Makefile.am

index 5c4cb01ff15ecaa8cc8e61dd4101ee6985956522..3fbe928cd147d1d905d27eb5c6792e9ea319814a 100644 (file)
@@ -9,7 +9,6 @@ configure.ac crlf=input
 *.il   crlf
 
 .gitattributes crlf
-ChangeLog      crlf
 *akefile*      crlf
 *.sources      crlf
 
index b5b83fa69f1fd96a73d903f9e06498757f4efe78..8bd7f62a724c21976806fd545100432d0b3f05d5 100644 (file)
@@ -5,7 +5,7 @@ monolldbdir = $(libdir)/mono/lldb
 
 EXTRA_DIST =   \
        config.in \
-       browscap.ini mono.supp mono.d README ChangeLog \
+       browscap.ini mono.supp mono.d README \
        mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
        mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
        mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
index 84cc8353c99489244340626b95d1d4b4b7b45cb1..c1121729bbff61cc3b2ab7409b3054f2313648cc 100644 (file)
@@ -16,4 +16,4 @@ endif
 endif
 endif
 
-EXTRA_DIST = autogen.sh README NEWS AUTHORS ChangeLog winconfig.h
+EXTRA_DIST = autogen.sh README NEWS AUTHORS winconfig.h
index 6a3528e7c6ada140a8d8eca1b2273ba16970a394..9d2deb9122f88a1b0759a16c4ba42b6c9272a885 100644 (file)
 
        And examining the output.
 
-* ChangeLogs
-
-       ChangeLogs are the files that we use to track the project
-       history.  ChangeLogs are found one per directory, or in small
-       projects, one per project.
-
-       The format looks like this:
-
-       2004-11-19  Raja R Harinath  <rharinath@novell.com>
-
-               * Makefile (%-profiles): Go through an intermediate
-               set of rules.  Move body to ...
-               (profiles-do--%): ... this.
-               (profiles-do--run-test): Customized rule that usefully
-               runs with 'make -j' and 'make -k'.
-               (profiles-do--all, profile-do--%--all): Orchestrate
-               the bootstrap process.
-
-               * file.cs (MainForm): Updated version.
-
-       The date, author, email address in the first line.
-
-       From that point on a list of changes in a file-by-file basis,
-       describing what changes were done.
-
-       This information must be cut and pasted into your commit
-       message, so the information ends up in two places: in the
-       subversion repository metadata and also on the source code
-       distirbution (which does not have the Subversion metadata).
-               
 * Warnings
 
        Avoid commiting code with warnings to the repository, the use
index f6127157641bbf50f43ca438ecb8044ff927b3fa..e31193319f10b19b532b58db560ea1bfce425177 100644 (file)
@@ -85,7 +85,6 @@ package := mcs-$(VERSION)
 
 DISTFILES = \
        AUTHORS                 \
-       ChangeLog               \
        COPYING                 \
        COPYING.LIB             \
        INSTALL.txt             \
index 88e3bfa6986093cb8d264150ac5ae3c49aac9370..1bc0fd2f2773f1c6f2c6e9a93d5de3ffddff8845 100644 (file)
@@ -13,8 +13,6 @@ LIB_MCS_FLAGS = /r:$(corlib) \
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
 EXTRA_DISTFILES = \
        Commons.Xml.Relaxng.Rnc/RncParser.jay   \
-       Test/ChangeLog          \
-       Test/XmlFiles/ChangeLog \
        $(wildcard Test/XmlFiles/*.rng) \
        $(wildcard Test/XmlFiles/*.rnc) \
        $(wildcard Test/XmlFiles/*.nvdl) \
index b7d4788608e635094b1ee1a23b448201f1ab9610..f27d56c2c5f08a3e8f9f69f3908a8fcc765f83b8 100644 (file)
@@ -3,7 +3,6 @@ SUBDIRS = Common West MidEast Other Rare CJK
 include ../../build/rules.make
 
 DISTFILES = \
-       Assembly/ChangeLog \
        Assembly/AssemblyInfo.cs \
        README          \
        README.mono     \
index 6b4482bac767b91037627c01bd079d08f7223605..2932b7b4b8a724c79d3adda1b11c45a7c23d9169 100644 (file)
@@ -4,7 +4,6 @@
 /BaseFacesPageHandlerFactory.cs -crlf
 /BaseFacesStateManager.cs -crlf
 /BaseFacesViewHandler.cs -crlf
-/ChangeLog -crlf
 /IExtendedViewHandler.cs -crlf
 /OutputStreamWrapper.cs -crlf
 /RequestParameterMap.cs -crlf
index 9e4ea439ac6e91f29dfca00443d076a600920baf..4f3bf364d1b3b0a89e877d7e0cd79e767a864408 100644 (file)
@@ -1,4 +1,3 @@
-/ChangeLog -crlf
 /CloudscapeProfileProvider.cs -crlf
 /DerbyProfileHelper.cs -crlf
 /DerbyProfileProvider.cs -crlf
index 43efedfcfae969e3428ce2a913442c85387e0f1e..dc336de8ef1d82180da1ebd226f003de61ad382e 100644 (file)
@@ -1,4 +1,3 @@
-/ChangeLog -crlf
 /CloudscapeMembershipProvider.cs -crlf
 /CloudscapeRoleProvider.cs -crlf
 /DerbyApplicationsHelper.cs -crlf
index 6746daf26e63def7afb621670c916fe51c2ab9ba..a5453d47d276e77ca89d54779f5ff3929f886483 100644 (file)
@@ -19,7 +19,6 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
 EXTRA_DISTFILES = Test/SqliteTest.cs \
        Test/test.sql \
        resources/SR.resx       \
-       resources/ChangeLog     \
        resources/DataTypes.xml \
        resources/MetaDataCollections.xml \
        $(PREBUILT) \
index 857147d9814427ad6ab1bb369e93b061f392f470..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-/ChangeLog -crlf
index db182daf3e029739ece6629f982e59bf93cd1e5d..0797ae27094e7f961088909f458c66cbac20973a 100644 (file)
@@ -4,7 +4,7 @@ include ../../build/rules.make
 
 LIBRARY = Mono.Security.Win32.dll
 LIB_MCS_FLAGS = /unsafe
-EXTRA_DISTFILES = README Test/ChangeLog
+EXTRA_DISTFILES = README
 
 ifneq (win32, $(PROFILE))
 NO_TEST = yes
index 7bc9ed64a03a70819f0dbde97eacaf5a5324dfce..99a6f3cde88879ab893b4dce4500d2d00e6bc1cd 100644 (file)
@@ -37,7 +37,6 @@ EXTRA_DISTFILES = \
        $(wildcard Test/System.Data/*.xsd)              \
        $(wildcard Test/System.Xml/*.xml)               \
        $(wildcard Test/System.Xml/*.xsd)               \
-       Test/System.Data/schemas/ChangeLog      \
        $(wildcard Test/System.Data/schemas/*.xsd)              \
        app_test_net_4_x.config                 \
        Test/System.Data/binserialize/*.bin     \
index 6b8dedc7cf03d5fa89d99b95d604d4bbe05ede14..77a123a92d15c91124e859c2ca46b9f28a4ed5cf 100644 (file)
@@ -1,2 +1 @@
-/ChangeLog -crlf
 /DateComparisonTest.cs -crlf
index e3ded8555b40c8cd65bf07f549215d02e8df89b4..fece22d8b8f056176f1dd0648ccda8b38740c9aa 100644 (file)
@@ -1,4 +1,3 @@
 /App.config -crlf
-/ChangeLog -crlf
 /Secure.config -crlf
 /makefile.build -crlf
index 729d878e80938e5f1e136aa4311a82cb4d999e37..b7c3075b756de0e2ab4a8b00d65a71f10fb9e11b 100644 (file)
@@ -2,7 +2,6 @@
 /Bitmap.cs -crlf
 /Brush.cs -crlf
 /Brushes.cs -crlf
-/ChangeLog -crlf
 /Colors.cs -crlf
 /Enums.cs -crlf
 /Graphics.cs -crlf
index 16a03ec702aaaa8cfa7df6284b5f728659a0a77a..f0eac39bcdf5cf9df7b333031f147f91d7d64ffb 100644 (file)
@@ -7,6 +7,4 @@ LIB_REFS = System.Transactions
 LIB_MCS_FLAGS = /nowarn:0168 /nowarn:0162 /r:$(corlib)
 NO_TEST = yes
 
-EXTRA_DISTFILES = System.EnterpriseServices.Internal/ChangeLog
-
 include ../../build/library.make
index 23f7a31fe2e5d4519ceed93df8395b635ef507c0..fbce3a89035015f99407f4a3079adeb73e909929 100644 (file)
@@ -1,4 +1,3 @@
-/ChangeLog -crlf
 /ThemeElements.cs -crlf
 /ThemeElementsClearlooks.cs -crlf
 /ThemeElementsDefault.cs -crlf
index cea6846f7b4eafd4f767d916c08fa90b83c305e2..26a498d444809913c3631633c2181f6633fc380f 100644 (file)
@@ -1,5 +1,4 @@
 /ButtonPainter.cs -crlf
-/ChangeLog -crlf
 /CheckBoxPainter.cs -crlf
 /RadioButtonPainter.cs -crlf
 /TabControlPainter.cs -crlf
index 922c53b14f34b68887d5c80770306e2da43e95bf..da9eacb25eef4d094186b6018767946af202af0a 100644 (file)
@@ -1,5 +1,4 @@
 /AlertCheck.cs -crlf
-/ChangeLog -crlf
 /ConfirmCheck.cs -crlf
 /Generic.cs -crlf
 /Prompt.cs -crlf
index 9fd6276bcea918729406540e67ba166ede99c2ca..7ced04ee85e777851c7b53527edd72beb8193210 100644 (file)
@@ -36,20 +36,18 @@ endif
 LOCAL_MCS_FLAGS += -lib:$(bare_libdir)
 
 nist_dom_files = \
-       ChangeLog ITest.cs readme.txt util.cs \
-       fundamental/ChangeLog \
-       files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
+       ITest.cs readme.txt util.cs \
+       files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
 
 xmlfiles_files = \
-       ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
-       xsl/ChangeLog xsl/empty.xsl \
-       XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
-       xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd xsd/81360.xsd xsd/81360inc1.xsd xsd/81360inc2.xsd
+       nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
+       xsl/empty.xsl \
+       XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
+       xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd xsd/81360.xsd xsd/81360inc1.xsd xsd/81360inc2.xsd
 
 EXTRA_DISTFILES = \
        $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
        $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
-       Test/ChangeLog                  \
        Test/Microsoft.Test.csproj      \
        Test/Mono.Test.csproj           \
        Test/MonoMicro.Test.csproj      \
@@ -62,7 +60,6 @@ EXTRA_DISTFILES = \
        $(wildcard Test/XmlFiles/xsl/*.xml) \
        $(wildcard Test/XmlFiles/xsl/*.xsl) \
        Test/XmlFiles/xsl/current-in-select.ref \
-       Test/XmlFiles/xsl/ChangeLog \
        $(xmlfiles_files:%=Test/XmlFiles/%) \
        $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
 
index 9fcb2397d1c8762755e10b5f7c6c07ae8427bf43..392e8c0651a1794cbb9c262f2fb63a1d9b52e2ca 100644 (file)
@@ -73,7 +73,6 @@ endif
 EXTRA_DISTFILES = \
        Test/test-config-file                           \
        Test/test-config-file-net-2.0                   \
-       Test/System.Security.Cryptography.X509Certificates/pkits/ChangeLog      \
        Test/System.Security.Cryptography.X509Certificates/pkits/Makefile       \
        Test/System.Security.Cryptography.X509Certificates/pkits/README         \
        Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs   \
index 857147d9814427ad6ab1bb369e93b061f392f470..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-/ChangeLog -crlf
index 43cee29c15b0e231810fcba9648787a453bb251e..6b24d0d0536c459fe9a0496212cf326288057754 100644 (file)
@@ -10,9 +10,6 @@ CLEAN_FILES = parser/y.output
 
 EXTRA_DISTFILES = \
        parser/ILParser.jay     \
-       parser/ChangeLog        \
-       scanner/ChangeLog       \
-       tests/ChangeLog         \
        $(wildcard tests/*.il)
 
 ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
index 857147d9814427ad6ab1bb369e93b061f392f470..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-/ChangeLog -crlf
index 87416872f6e325499d4c927ee1638c680ad9fa66..5612361402d091f9b8835189fc076e29290779af 100644 (file)
@@ -7,5 +7,4 @@ if ARM
 SUBDIRS = $(arch_target)
 endif
 
-EXTRA_DIST = ChangeLog
 
index c608c582b555f2b6041d2f8afee13ba3dbe2201e..b62633307b46f43e5547e6957ca6d5d6c404b0fd 100644 (file)
@@ -230,4 +230,4 @@ libmonoutilsinclude_HEADERS =       \
        mono-dl-fallback.h      \
        mono-counters.h
 
-EXTRA_DIST = ChangeLog mono-embed.h mono-embed.c
+EXTRA_DIST = mono-embed.h mono-embed.c
diff --git a/scripts/commits-to-changelog.py b/scripts/commits-to-changelog.py
deleted file mode 100755 (executable)
index 6181c75..0000000
+++ /dev/null
@@ -1,287 +0,0 @@
-#!/usr/bin/python
-
-from __future__ import print_function
-from optparse import OptionParser
-import subprocess
-import re
-import os.path
-import fnmatch
-import os
-import sys
-
-# subtract 8 for the leading tabstop
-fill_column = 74 - 8
-
-path_to_root = None
-
-all_changelogs = {}
-
-def git (command, *args):
-    popen = subprocess.Popen (["git", command] + list (args), stdout = subprocess.PIPE)
-    output = popen.communicate () [0]
-    if popen.returncode != 0:
-        print ("Error: git failed", file=sys.stderr)
-        exit (1)
-    return output
-
-def changelog_path (changelog):
-    global path_to_root
-    if not path_to_root:
-        path_to_root = git ("rev-parse", "--show-cdup").strip ()
-    (pathname, filename) = changelog
-    return path_to_root + "./" + pathname + "/" + filename
-
-def changelog_for_file (filename):
-    while filename != "":
-        dirname = os.path.dirname (filename)
-        if dirname in all_changelogs:
-            return (dirname, all_changelogs [dirname])
-        filename = dirname
-    assert False
-
-def changelogs_for_file_pattern (pattern, changed_files):
-    changelogs = set ()
-    for filename in changed_files:
-        suffix = filename
-        while suffix != "":
-            # FIXME: fnmatch doesn't support the {x,y} pattern
-            if fnmatch.fnmatch (suffix, pattern):
-                changelogs.add (changelog_for_file (filename))
-            (_, _, suffix) = suffix.partition ("/")
-    return changelogs
-
-def format_paragraph (paragraph):
-    lines = []
-    words = paragraph.split ()
-    if len (words) == 0:
-        return lines
-    current = words [0]
-    for word in words [1:]:
-        if len (current) + 1 + len (word) <= fill_column:
-            current += " " + word
-        else:
-            lines.append ("\t" + current)
-            current = word
-    lines.append ("\t" + current)
-    return lines
-
-def format_changelog_paragraph (files, paragraph):
-    files_string = ""
-    for (filename, entity) in files:
-        if len (files_string) > 0:
-            files_string += ", "
-        files_string += filename
-        if entity:
-            files_string += " (" + entity + ")"
-    return format_paragraph ("* " + files_string + ": " + paragraph)
-
-def append_paragraph (lines, paragraph):
-    if len (lines):
-        lines.append ("")
-    lines += paragraph
-
-def format_changelog_entries (commit, changed_files, prefix, file_entries, all_paragraphs):
-    changelogs = set ()
-    for f in changed_files:
-        changelogs.add (changelog_for_file (f))
-    marked_changelogs = set ()
-
-    author_line = git ("log", "-n1", "--date=short", "--format=%ad  %an  <%ae>", commit).strip ()
-
-    paragraphs = {}
-    for changelog in changelogs:
-        paragraphs [changelog] = [author_line]
-
-    for (files, comments) in file_entries:
-        changelog_entries = {}
-        for (filename, entity) in files:
-            entry_changelogs = changelogs_for_file_pattern (filename, changed_files)
-            if len (entry_changelogs) == 0:
-                print ("Warning: could not match file {0} in commit {1}".format (filename, commit))
-            for changelog in entry_changelogs:
-                if changelog not in changelog_entries:
-                    changelog_entries [changelog] = []
-                changelog_entries [changelog].append ((filename, entity))
-                marked_changelogs.add (changelog)
-
-        for (changelog, files) in changelog_entries.items ():
-            append_paragraph (paragraphs [changelog], format_changelog_paragraph (files, comments [0]))
-            for paragraph in comments [1:]:
-                append_paragraph (paragraphs [changelog], format_paragraph (paragraph))
-
-    unmarked_changelogs = changelogs - marked_changelogs
-    for changelog in unmarked_changelogs:
-        if len (prefix) == 0:
-            print ("Warning: empty entry in {0} for commit {1}".format (changelog_path (changelog), commit))
-            insert_paragraphs = all_paragraphs
-        else:
-            insert_paragraphs = prefix
-        for paragraph in insert_paragraphs:
-            append_paragraph (paragraphs [changelog], format_paragraph (paragraph))
-
-    return paragraphs
-
-def debug_print_commit (commit, raw_message, prefix, file_entries, changed_files, changelog_entries):
-    print ("===================== Commit")
-    print (commit)
-    print ("--------------------- RAW")
-    print (raw_message)
-    print ("--------------------- Prefix")
-    for line in prefix:
-        print (line)
-    print ("--------------------- File entries")
-    for (files, comments) in file_entries:
-        files_str = ""
-        for (filename, entity) in files:
-            if len (files_str):
-                files_str = files_str + ", "
-            files_str = files_str + filename
-            if entity:
-                files_str = files_str + " (" + entity + ")"
-        print files_str
-        for line in comments:
-            print ("  " + line)
-    print ("--------------------- Files touched")
-    for f in changed_files:
-        print (f)
-    print ("--------------------- ChangeLog entries")
-    for ((dirname, filename), lines) in changelog_entries.items ():
-        print ("{0}/{1}:".format (dirname, filename))
-        for line in lines:
-            print (line)
-
-def process_commit (commit):
-    changed_files = map (lambda l: l.split () [2], git ("diff-tree", "--numstat", commit).splitlines () [1:])
-    if len (filter (lambda f: re.search ("(^|/)Change[Ll]og$", f), changed_files)):
-        return None
-    raw_message = git ("log", "-n1", "--format=%B", commit)
-    # filter SVN migration message
-    message = re.sub ("(^|\n)svn path=[^\n]+revision=\d+(?=$|\n)", "", raw_message)
-    # filter ChangeLog headers
-    message = re.sub ("(^|\n)\d+-\d+-\d+[ \t]+((\w|[.-])+[ \t]+)+<[^\n>]+>(?=$|\n)", "", message)
-    # filter leading whitespace
-    message = re.sub ("^\s+", "", message)
-    # filter trailing whitespace
-    message = re.sub ("\s+$", "", message)
-    # paragraphize - first remove whitespace at beginnings and ends of lines
-    message = re.sub ("[ \t]*\n[ \t]*", "\n", message)
-    # paragraphize - now replace three or more consecutive newlines with two
-    message = re.sub ("\n\n\n+", "\n\n", message)
-    # paragraphize - replace single newlines with a space
-    message = re.sub ("(?<!\n)\n(?!\n)", " ", message)
-    # paragraphize - finally, replace double newlines with single ones
-    message = re.sub ("\n\n", "\n", message)
-
-    # A list of paragraphs (strings without newlines) that occur
-    # before the first file comments
-    prefix = []
-
-    # A list of tuples of the form ([(filename, entity), ...], [paragraph, ...]).
-    #
-    # Each describes a file comment, containing multiple paragraphs.
-    # Those paragraphs belong to a list of files, each with an
-    # optional entity (usually a function name).
-    file_entries = []
-
-    current_files = None
-    current_files_comments = None
-
-    message_lines = message.splitlines ()
-    for line in message_lines:
-        if re.match ("\*\s[^:]+:", line):
-            if current_files:
-                file_entries.append ((current_files, current_files_comments))
-
-            (files, _, comments) = line.partition (":")
-
-            current_files_comments = [comments.strip ()]
-
-            current_files = []
-            for f in re.split ("\s*,\s*", files [1:].strip ()):
-                m = re.search ("\(([^()]+)\)$", f)
-                if m:
-                    filename = f [:m.start (0)].strip ()
-                    entity = m.group (1).strip ()
-                else:
-                    filename = f
-                    entity = None
-                current_files.append ((filename, entity))
-        else:
-            if current_files:
-                current_files_comments.append (line)
-            else:
-                prefix.append (line)
-    if current_files:
-        file_entries.append ((current_files, current_files_comments))
-
-    changelog_entries = format_changelog_entries (commit, changed_files, prefix, file_entries, message_lines)
-
-    #debug_print_commit (commit, raw_message, prefix, file_entries, changed_files, changelog_entries)
-
-    return changelog_entries
-
-def start_changelog (changelog):
-    full_path = changelog_path (changelog)
-    old_name = full_path + ".old"
-    os.rename (full_path, old_name)
-    return open (full_path, "w")
-
-def finish_changelog (changelog, file):
-    old_file = open (changelog_path (changelog) + ".old")
-    file.write (old_file.read ())
-    old_file.close ()
-    file.close ()
-
-def append_lines (file, lines):
-    for line in lines:
-        file.write (line + "\n")
-    file.write ("\n")
-
-def main ():
-    usage = "usage: %prog [options] <start-commit>"
-    parser = OptionParser (usage)
-    parser.add_option ("-r", "--root", dest = "root", help = "Root directory of the working tree to be changed")
-    (options, args) = parser.parse_args ()
-    if len (args) != 1:
-        parser.error ("incorrect number of arguments")
-    start_commit = args [0]
-
-    if options.root:
-        global path_to_root
-        path_to_root = options.root + "/"
-
-    # MonkeyWrench uses a shared git repo but sets BUILD_REVISION,
-    # if present we use it instead of HEAD
-    HEAD = "HEAD"
-    if 'BUILD_REVISION' in os.environ:
-        HEAD = os.environ['BUILD_REVISION']
-
-    #see if git supports %B in --format
-    output = git ("log", "-n1", "--format=%B", HEAD)
-    if output.startswith ("%B"):
-        print ("Error: git doesn't support %B in --format - install version 1.7.2 or newer", file=sys.stderr)
-        exit (1)
-
-    for filename in git ("ls-tree", "-r", "--name-only", HEAD).splitlines ():
-        if re.search ("(^|/)Change[Ll]og$", filename):
-            (path, name) = os.path.split (filename)
-            all_changelogs [path] = name
-
-    commits = git ("rev-list", "--no-merges", HEAD, "^{0}".format (start_commit)).splitlines ()
-
-    touched_changelogs = {}
-    for commit in commits:
-        entries = process_commit (commit)
-        if entries == None:
-            continue
-        for (changelog, lines) in entries.items ():
-            if not os.path.exists (changelog_path (changelog)):
-                continue
-            if changelog not in touched_changelogs:
-                touched_changelogs [changelog] = start_changelog (changelog)
-            append_lines (touched_changelogs [changelog], lines)
-    for (changelog, file) in touched_changelogs.items ():
-        finish_changelog (changelog, file)
-
-if __name__ == "__main__":
-    main ()
index c2b1aa45095e8909951350e33549978fafe13cb2..123d63d2fb1e4353e385d15752b59816663d5417 100644 (file)
@@ -56,5 +56,4 @@ graphs: $(OUT)
        ./monograph -n -o $*.png corlib.dll $*
        convert -geometry '480x360>' $*.png $*.jpeg
 
-EXTRA_DIST = ChangeLog