shithub: libdvdcss

Download patch

ref: 059709270c0abfc70bf4c493e0a3ca3e6225ea79
parent: 75590b889feb6cf518d624fb014555269f53657f
author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
date: Thu Feb 14 03:12:24 EST 2013

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

This would work both from the repository and from the tarball.

--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
 .libs
 /m4/libtool.m4
 /m4/lt*.m4
+ChangeLog
 Makefile
 Makefile.in
 aclocal.m4
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,17 @@
 
 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