aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2018-04-24 00:02:37 -0400
committerChris Luke <chrisy@flirble.org>2018-04-25 10:41:03 -0400
commitac2b7363f437afedd100162c901b5d03cb37a34a (patch)
tree2a5b37f0aa3143895f6dfe5c89e13e868ca3ee55 /extras
parent516d63ff2c6671f3b0dc641511a50017a9804179 (diff)
VPP 18.04 release notesv18.04
- Notes for the 18.04 release - Fixes for table layout of previous API summary - Update list_api_changes.py script Change-Id: Id99ed4df2e76e2704f949ee940eedf9ede7e8f4b Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/scripts/list_api_changes.py26
1 files changed, 22 insertions, 4 deletions
diff --git a/extras/scripts/list_api_changes.py b/extras/scripts/list_api_changes.py
index 9e80925b2aa..0089156ac5b 100755
--- a/extras/scripts/list_api_changes.py
+++ b/extras/scripts/list_api_changes.py
@@ -1,15 +1,33 @@
#!/usr/bin/env python
import os, fnmatch, subprocess
-starttag = 'v18.01-rc0'
-endtag = 'v18.01-rc2'
+
+starttag = 'v18.04-rc0'
+endtag = 'v18.04-rc2'
+emit_md = True
apifiles = []
+
for root, dirnames, filenames in os.walk('.'):
for filename in fnmatch.filter(filenames, '*.api'):
apifiles.append(os.path.join(root, filename))
+
for f in apifiles:
commits = subprocess.check_output(['git', 'log',
'--oneline', starttag + '..' + endtag,
f])
if commits:
- print f
- print commits
+ if f[0:2] == './':
+ f = f[2:]
+ if emit_md:
+ print "| @c %s ||" % f
+ print "| ------- | ------- |"
+ for line in commits.splitlines():
+ parts = line.strip().split()
+ commit = parts[0]
+ message = " ".join(parts[1:]).replace("|", "\|")
+ print "| [%s](https://gerrit.fd.io/r/gitweb?" \
+ "p=vpp.git;a=commit;h=%s) | %s |" % (
+ commit, commit, message)
+ print
+ else:
+ print f
+ print commits