[FFmpeg-devel] [PATCH V5 2/2] configure: replace 'pr' with printf since busybox does not support pr
Guo, Yejun
yejun.guo at intel.com
Wed Apr 24 16:13:21 EEST 2019
This patch is based on https://trac.ffmpeg.org/ticket/5680 provided by
Kylie McClain <somasis at exherbo.org> at Wed, 29 Jun 2016 16:37:20 -0400,
and have some changes.
contributor: Kylie McClain <somasis at exherbo.org>
contributor: avih <avihpit at yahoo.com>
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
configure | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index ad1b183..4215765 100755
--- a/configure
+++ b/configure
@@ -502,9 +502,13 @@ log(){
}
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"
}
warn(){
--
2.7.4
More information about the ffmpeg-devel
mailing list