Clean up ChangeLog generation.
This commit is contained in:
parent
f3a6225995
commit
bfb4a9dd1a
@ -15,8 +15,7 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2
|
||||
update-changelog: FORCE
|
||||
git --help >/dev/null 2>&1 \
|
||||
&& test -d .git \
|
||||
&& git log --stat | grep -v '^ \(git-svn-id\|$$\)' \
|
||||
| sed '/^Author:/s/ <.*@.*>//' > ChangeLog
|
||||
&& git log --stat | awk 'function flush() { if (m != "") { print "Commit: " v "\nAuthor: " a m } m=""; v="UNSUBMITTED" } { if ($$1 == "commit") flush(); else if ($$1 == "Author:") { a = $$2 } else if ($$1 == "git-svn-id:") { split($$2,tmp,"@"); v=tmp[2] } else if ($$_ != " ") { m=m "\n" $$_ } } END { flush() }' > ChangeLog
|
||||
|
||||
echo-dirs: ; echo src test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user