[FFmpeg-devel] [PATCH V5 2/2] configure: replace 'pr' with printf since busybox does not support pr

avih avihpit at yahoo.com
Wed Apr 24 16:22:54 EEST 2019


>  log_file(){
> -    log BEGIN $1
> -    pr -n -t $1 >> $logfile
> -    log END $1
> +    log BEGIN "$1"
> +    log_file_i=1
> +    while IFS= read -r log_file_line;do
> +        printf '%5s  %s\n' "${log_file_i}" "${log_file_line}"
> +        log_file_i=$(($log_file_i+1))
> +    done < "$1" >> "$logfile"
> +    log END "$1"
> }

Looks good to me, no further comments (but I don't push).



More information about the ffmpeg-devel mailing list