Autogen the ChangeLog from git
authorPeng Huang <shawn.p.huang@gmail.com>
Sun, 14 Jun 2009 22:44:14 +0000 (06:44 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Sun, 14 Jun 2009 22:44:14 +0000 (06:44 +0800)
ChangeLog [deleted file]
Makefile.am
autogen.sh

diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644 (file)
index e69de29..0000000
index 4b01b2f429b0ab4c087b60747965cc3a8b6a3ba2..73be7fe87ff90eeaf80b235b757bc9218d1944d9 100644 (file)
@@ -69,6 +69,11 @@ DISTCHECK_CONFIGURE_FLAGS = \
        --disable-schemas-install \
        $(NULL)
 
+dist-hook:
+       if test -d .git ; then \
+               git log --name-status --date=iso > $(distdir)/ChangeLog ; \
+       fi
+
 rpm: dist @PACKAGE_NAME@.spec
        rpmbuild -bb \
                        --define "_sourcedir `pwd`" \
index 5dfa50c78853864661d76aa63572fa84b5ab3347..bc88a18acf2112772e9a12dd8e4c264927d3cb45 100755 (executable)
@@ -2,6 +2,7 @@
 set -e
 set -x
 
+touch ChangeLog
 autopoint  --force || exit 1
 intltoolize --copy --force || exit 1
 libtoolize --automake --copy --force || exit 1