Re: [libdvdcss-devel] [PATCH] build: Only create ChangeLog file from Git if Git is available

Diego Biurrun <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <20141102205352.GJ30310@nibbler>
On Sun, Nov 02, 2014 at 09:48:26PM +0100, Jean-Baptiste Kempf wrote:
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -7,9 +7,11 @@ dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog
> >  
> >  ChangeLog: $(wildcard $(srcdir)/.git/logs/HEAD)
> > +if GIT
> >  	-cd $(srcdir) && git log > $(abs_builddir)/$(@)-tmp
> >  	test -s $(@)-tmp && mv $(@)-tmp $(@)
> >  	-rm -f $(@)-tmp
> > +endif
> >  	test -e $(@) || touch $(@)
> 
> Sure.
> but it's also why it's "-"

Try on a system without Git, you will see annoying error messages.

Diego
_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.