[Bf-committers] Remove Distro Specific Commands

Christopher Cherrett ccherrett at openoctave.org
Thu Jan 3 02:49:05 CET 2013


Hi,

HASFFMPEG=1; command -v ffmpeg >/dev/null 2>&1 || { HASFFMPEG=0;}; echo 
${HASFFMPEG}

checks to see if ffmpeg exists

then check the version

Christopher Cherrett wrote:
> Hi,
>
> Could someone please update the install_deps script to not use distro
> specific tools for searching the version of ffmpeg?
>
> I am running Gentoo and the script thinks I am using an unsupported
> distro :)
>
> ffmpeg -version|cut -d' ' -f3|head -1
>
> or like this:
>
> ffmpeg -version|awk -F' ' '{print $3}'|head -1
>
> Both output on my machine:
>
> 0.10.4
>
> If I am not missing something then we do not need to use the distro
> specific tools for anything.
>
> Thanks!
>


-- 
Christopher Cherrett
ccherrett at openoctave.org
http://www.openoctave.org



More information about the Bf-committers mailing list