diff mbox

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

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

Commit Message

Guo, Yejun April 15, 2019, 1:23 p.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.

I'm not sure if it is the expected behavior to make the whole thing completed,
please ignore this patch if not expected.

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
 configure | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox


diff --git a/configure b/configure
index 45a9126..e596912 100755
--- a/configure
+++ b/configure
@@ -503,7 +503,11 @@  log(){
     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