[libav-devel] [PATCH] configure: Replace `pr` since it is not provided by busybox

Luca Barbato lu_zero at gentoo.org
Wed Dec 2 12:39:10 CET 2015


On 02/12/15 12:37, Diego Biurrun wrote:
> On Wed, Dec 02, 2015 at 12:33:27PM +0100, Diego Biurrun wrote:
>> On Thu, Nov 26, 2015 at 11:41:26AM +0100, Luca Barbato wrote:
>>> --- a/configure
>>> +++ b/configure
>>> @@ -343,7 +343,11 @@ log(){
>>>
>>>  log_file(){
>>>      log BEGIN $1
>>> -    pr -n -t $1 >> $logfile
>>> +    i=1
>>> +    while read line;do
>>> +        printf '%5s   %s\n' "${i}" "${line}"
>>> +        i=$(($i+1))
>>> +    done < $1 >> $logfile
>>>      log END $1
>>>  }
>>
>> The nl utility could do the job as well.
> 
> Or one could drop those line numbers, they don't add much value.
> 

+1



More information about the libav-devel mailing list