diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2008-10-20 10:48:56 -0400 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2008-10-20 10:48:56 -0400 |
commit | cf470a6ec35afde1ceb3e0d8af5e2504cfac3678 (patch) | |
tree | 0c14d06021733156fe943b951c9aba5598368066 /contrib/weekly-changelog-report.py | |
parent | 34331f293444a55eca9bcfd5c5543de874f2a4cb (diff) |
contrib/weekly-changelog-report.py: add script to generate
Diffstat (limited to 'contrib/weekly-changelog-report.py')
-rwxr-xr-x | contrib/weekly-changelog-report.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/weekly-changelog-report.py b/contrib/weekly-changelog-report.py new file mode 100755 index 0000000000..2898c2f97f --- /dev/null +++ b/contrib/weekly-changelog-report.py @@ -0,0 +1,24 @@ +#!/usr/bin/python + + +# generates an OE changelog for last weeks activity (Mon-Sun) assuming it is run on +# any day of the following week + +import datetime +import os + +today = datetime.date.today() + +# 0 = Mon, 6 = Sun +today_weekday = today.weekday() + +# find Mon of this week +end_day = today - datetime.timedelta(today_weekday) + +start_day = end_day - datetime.timedelta(7) + +print "OE weekly changelog %s to %s\n" % (start_day.isoformat(), end_day.isoformat()) + +os.system("git-shortlog --since=%s --until=%s" % (start_day.isoformat(), end_day.isoformat())) + + |