summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2015-11-23 14:06:50 -0500
committerLuca Barbato <lu_zero@gentoo.org>2015-12-02 23:49:10 +0100
commitbf12a81cc67d62dd45c58e29fa0e9177331cc151 (patch)
tree2ca52f997859361e0e38afe79af5bf2c4c54eff4 /configure
parent5f3a081b42b84404a40a52c80ef7a354cf048c56 (diff)
configure: Replace `pr` since it is not provided by busybox
While pr is a valid POSIX.1 command, its usage in configure is a little borderline and is possible to replace it with printf. Bug-Id: 913 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 6ec7586f82..615a648fca 100755
--- a/configure
+++ b/configure
@@ -343,7 +343,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
}
@@ -2535,7 +2539,7 @@ die_unknown(){
}
print_3_columns() {
- cat | tr ' ' '\n' | sort | pr -r -3 -t
+ printf "%-25s %-25s %-25s\n" $(cat | tr ' ' '\n' | sort)
}
show_list() {