mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-16 10:35:49 +08:00
12 lines
421 B
Python
12 lines
421 B
Python
#!/usr/bin/env python
|
|
import commands
|
|
import datetime
|
|
|
|
date = datetime.date.today().strftime("%d %b %Y")
|
|
tag = commands.getoutput("git tag").split("\n")[-1]
|
|
log = commands.getoutput("git log --reverse --pretty=format:'- %%s' %s.. sources" % tag)
|
|
version = commands.getoutput("grep -o '^VERSION=.*.$' Makefile | cut --delimiter='=' --fields=2")
|
|
print "%s (Khaled Hosny) <XITS> Version %s" %(date, version)
|
|
print log
|
|
print
|