提交 27b175b9 编写于 作者: J Jim Meyering

generate ChangeLog from git logs into distribution tarball

No longer maintain a version-controlled ChangeLog file, but do
continue to include a ChangeLog file in distribution tarball.
* Makefile.am (gen-ChangeLog): New rule.
(dist-hook): Depend on it.
(EXTRA_DIST): Add ChangeLog-old.
* bootstrap (modules): Add gitlog-to-changelog.
* ChangeLog: Remove file.  Renamed to...
* ChangeLog-old: ...this.  New file.
* autogen.sh: Touch ChangeLog, to ensure it exists.  For automake.
上级 bf773e04
...@@ -1207,7 +1207,7 @@ Fri Apr 24 13:17:47 BST 2009 Daniel P. Berrange <berrange@redhat.com> ...@@ -1207,7 +1207,7 @@ Fri Apr 24 13:17:47 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Fix network config in XM driver Fix network config in XM driver
* src/xm_internal.c: Fix setting of bridge & script parameters * src/xm_internal.c: Fix setting of bridge & script parameters
in VIF config in VIF config
* src/xend_internal.h, src/xend_internal.c: Export the * src/xend_internal.h, src/xend_internal.c: Export the
default bridge script name to XM driver default bridge script name to XM driver
* tests/xmconfigdata/*: Update to take account of script= * tests/xmconfigdata/*: Update to take account of script=
setting in VIF config setting in VIF config
......
...@@ -9,6 +9,7 @@ SUBDIRS = gnulib/lib include src qemud tools proxy docs gnulib/tests \ ...@@ -9,6 +9,7 @@ SUBDIRS = gnulib/lib include src qemud tools proxy docs gnulib/tests \
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4 ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
EXTRA_DIST = \ EXTRA_DIST = \
ChangeLog-old \
libvirt.spec libvirt.spec.in \ libvirt.spec libvirt.spec.in \
mingw32-libvirt.spec.in \ mingw32-libvirt.spec.in \
libvirt.pc libvirt.pc.in \ libvirt.pc libvirt.pc.in \
...@@ -49,3 +50,17 @@ clean-cov: ...@@ -49,3 +50,17 @@ clean-cov:
# disable this check # disable this check
distuninstallcheck: distuninstallcheck:
dist-hook: gen-ChangeLog
# Generate the ChangeLog file (with all entries since the switch to git)
# and insert it into the directory we're about to use to create a tarball.
gen_start_date = 2009-07-04
.PHONY: gen-ChangeLog
gen-ChangeLog:
if test -d .git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--since=$(gen_start_date) > $(distdir)/cl-t; \
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
...@@ -54,6 +54,9 @@ if test -z "$*"; then ...@@ -54,6 +54,9 @@ if test -z "$*"; then
echo "to pass any to it, please specify them on the $0 command line." echo "to pass any to it, please specify them on the $0 command line."
fi fi
# Automake requires that ChangeLog exist.
touch ChangeLog
autopoint --force autopoint --force
#rm -rf m4 #rm -rf m4
libtoolize --copy --force libtoolize --copy --force
......
...@@ -78,6 +78,7 @@ getaddrinfo ...@@ -78,6 +78,7 @@ getaddrinfo
gethostname gethostname
getpass getpass
gettext gettext
gitlog-to-changelog
gnumakefile gnumakefile
inet_pton inet_pton
ioctl ioctl
......
...@@ -10,3 +10,4 @@ mkinstalldirs ...@@ -10,3 +10,4 @@ mkinstalldirs
mktempd mktempd
/useless-if-before-free /useless-if-before-free
/vc-list-files /vc-list-files
/gitlog-to-changelog
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册