Discussion:
[libdvdcss-devel] build: generate ChangeLog from git, if git is present.
Diego Elio Pettenò
2013-02-14 20:13:50 UTC
Permalink
libdvdcss | branch: master | Diego Elio Pettenò <***@flameeyes.eu> | Thu Feb 14 08:12:24 2013 -0800| [059709270c0abfc70bf4c493e0a3ca3e6225ea79] | committer: Diego Elio Pettenò

build: generate ChangeLog from git, if git is present.

This would work both from the repository and from the tarball.
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=059709270c0abfc70bf4c493e0a3ca3e6225ea79
---

.gitignore | 1 +
Makefile.am | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index a4a9496..6f5dbf8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
.libs
/m4/libtool.m4
/m4/lt*.m4
+ChangeLog
Makefile
Makefile.in
aclocal.m4
diff --git a/Makefile.am b/Makefile.am
index fdf2dff..bc794f3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,17 @@ ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = libdvdcss.spec doc/header.html doc/footer.html doc/latex/ INSTALL

-dist_doc_DATA = AUTHORS COPYING NEWS README
+dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog
+
+DISTCLEANFILES = ChangeLog
+
+ChangeLog: stamp-changelog
+
+stamp-changelog:
+ -git log > ChangeLog-tmp
+ test -s ChangeLog-tmp && mv ChangeLog-tmp ChangeLog
+ -rm -f ChangeLog-tmp
+ test -e ChangeLog || touch ChangeLog

lib_LTLIBRARIES = libdvdcss.la
EXTRA_PROGRAMS = csstest dvd_region

Loading...