[FFmpeg-devel] [PATCH V3 2/2] configure: replace 'pr' with printf since busybox does not support pr
Guo, Yejun
yejun.guo at intel.com
Tue Apr 23 13:31:37 EEST 2019
It is part of change from https://trac.ffmpeg.org/ticket/5680 provided
by Kylie McClain <somasis at exherbo.org> at Wed, 29 Jun 2016 16:37:20 -0400.
That change contains two parts, in function log_file and in function print_in_columns.
The second part is not good, so I have send out a new patch for print_in_columns.
As for the change in the first part, it is good. Just to make the whole thing completed,
i send out this patch to copy exactally the change in function log_file.
contributor: Kylie McClain <somasis at exherbo.org>
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index f8032aa..50cb31f 100755
--- a/configure
+++ b/configure
@@ -503,7 +503,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
}
--
2.7.4
More information about the ffmpeg-devel
mailing list