diff mbox

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

Message ID 1556015497-19549-1-git-send-email-yejun.guo@intel.com
State Superseded
Headers show

Commit Message

Guo, Yejun April 23, 2019, 10:31 a.m. UTC
It is part of change from https://trac.ffmpeg.org/ticket/5680 provided
by Kylie McClain <somasis@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@exherbo.org>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
---
 configure | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox

Patch

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
 }