From a6bcb2c3f6ed9a3a1e0bc9daa1ddbeb2b9168aa4 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sat, 28 Sep 2013 14:07:29 +0100 Subject: Improve locating of avcodec.h by replacing the sed scripts. --- src/combined/ffmpeg/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/combined/ffmpeg/Makefile.am b/src/combined/ffmpeg/Makefile.am index f10bd7022..61ac6d294 100644 --- a/src/combined/ffmpeg/Makefile.am +++ b/src/combined/ffmpeg/Makefile.am @@ -40,7 +40,7 @@ avcodec_video.list: AV_CODECS:=/CODEC_ID_MPEG1VIDEO/,/CODEC_ID_PCM_S16LE/ # that weird shell call just yields full path of the avcodec.h file avcodec_audio.list avcodec_video.list: $(shell \ echo '#include "$(srcdir)/ffmpeg_decoder.h"' | $(AV_CPP) -M - |\ - sed -e 's/ \+/\n/g;' | sed -n -e '/avcodec\.h/p;') + sed -e '/avcodec\.h/! d; s%^.* \([^ ]*/avcodec\.h\) .*%\1%') $(AM_V_GEN)echo '#include "$(srcdir)/ffmpeg_decoder.h"' | $(AV_CPP) - |\ sed -e $(AV_CODECS)'! d; s/^[ \t]*//; s/[=,].*//; /^$$/ d' >$@ -- cgit v1.2.3