blob: c5c830dfecaa814cd75c6d2f2b892d8e159e04b5 [file] [log] [blame]
#!/bin/sh
read junk pkgname <debian/control
git log --pretty='format:'"$pkgname"' (SHA:%H) unstable; urgency=low
* %s
-- %aN <%aE> %aD
' . |
python -Sc '
import os, re, subprocess, sys
def Describe(g):
s = subprocess.check_output(["git", "describe", "--", g.group(1)]).strip()
return re.sub(r"^\D*", "", s)
print re.sub(r"SHA:([0-9a-f]+)", Describe, sys.stdin.read())
'