Changes between Version 2 and Version 3 of build


Ignore:
Timestamp:
02/09/2010 01:01:35 AM (14 years ago)
Author:
Sam Hocevar
Comment:

update-changelog

Legend:

Unmodified
Added
Removed
Modified
  • build

    v2 v3  
    44
    55Most of our software uses the [http://en.wikipedia.org/wiki/GNU_build_system autotools]. We ship a generic [/export/HEAD/research/autotools/bootstrap bootstrap] script that is used to prepare the build tree by calling `autoconf`, `automake` and other utilities.
     6
     7== Utilities ==
     8
     9We generate changelogs from a git-svn checkout of the projects using the following snippet in the Makefile:
     10
     11{{{
     12#!makefile
     13update-changelog: FORCE
     14        git --help >/dev/null 2>&1 \
     15          && test -d .git \
     16          && 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
     17}}}