[FFmpeg-devel] [PATCH] web: Copy FFmpeg Logo by Makefile instead of cronjob

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Apr 9 17:19:06 CEST 2012


On Mon, Apr 09, 2012 at 02:01:17PM +0200, Thilo Borgmann wrote:
> Am 08.04.12 01:13, schrieb Thilo Borgmann:
> > Am 08.04.12 00:48, schrieb Reimar Döffinger:
> >> On Sun, Apr 08, 2012 at 12:06:44AM +0200, Thilo Borgmann wrote:
> >>> +LOGO_SRC := $(wildcard src/logik/$(DATE)-standard)
> >>> +
> >>> +ifneq ($(LOGO_SRC),)
> >>
> >> I don't see the point of this indirection, going through LOGO_SRC
> >>
> >>> +htdocs/ffmpeg-logo.png: $(LOGO_SRC)
> >>> +	test -z $< || cp $< $@
> >>> +	test ! -z $< || test -r $@ || cp htdocs/FFmpeg_standard.png $@
> >>
> >> Hm, I don't think the "test ! -z $< ||" makes really sense,
> >> just leaving it out IMO gives a more logical behaviour.
> >> And maybe comment it, too:
> >> # if we have a new source file, copy it over
> >> test -z $< || cp $< $@
> >> # if not, make sure we have at least some file, otherwise copy default
> >> test -r $@ || cp htdocs/FFmpeg_standard.png $@
> > 
> > I think it's getting clear to be a fallback without the leading "test ! -z"
> > 
> > All other comments included :)
> 
> Everyone is ok with that?

No objections from me at least.


More information about the ffmpeg-devel mailing list