From 76ca2be8f29d1814fa698a68cae35d905ce63020 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 6 Jan 2011 21:53:19 +0100 Subject: Merge functionality of 'set-serial.sh' into the 'maintainer-all' target. Running 'maintainer-all' will now automatically ensure that the #serial number of every macro corresponds to the number of commits that have modified that macro in the Git repository. --- macro2m4.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'macro2m4.py') diff --git a/macro2m4.py b/macro2m4.py index bcd27d6..3db6ed8 100755 --- a/macro2m4.py +++ b/macro2m4.py @@ -22,7 +22,10 @@ tmpl = """\ # %(license)s -%(body)s""" +#serial %(serial)d + +%(body)s +""" def formatParagraph(para): assert para @@ -50,7 +53,7 @@ if len(sys.argv) != 3: raise Exception("invalid command line syntax: %s" % ' '.join(map(repr, sys.argv))) (m4File,outFile) = sys.argv[1:] assert outFile != m4File -m = Macro(m4File) +m = Macro(m4File, computeSerialNumber=True) for i in range(len(m.description)): para = m.description[i] if para[0][0].isspace(): -- cgit v1.2.1