[MPlayer-dev-eng] [PATCH] fix for textultils 2.1 coreutils 5.0 "-1" deprecation

Diego Biurrun diego at biurrun.de
Tue Jul 8 17:11:01 CEST 2003


Luca Barbato schrieb:
> Ok new patch to cope with that, if we are about to use textutils or 
> coreutils -n 1 will be used, else -1.
> 
> I hope that one is ok for every system.
> 
> generated with cvs diff -u
> 
> +oneline="-n 1"
> +if test -z "`cut --version | egrep "textutils|coreutils"`" ; then
> +  oneline="-1"
> +fi
> +
>  
> -  pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
> +  pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head `

You sure this is correct? ;-)

Diego




More information about the MPlayer-dev-eng mailing list