aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-02-21 16:43:47 +0100
committerDiego Biurrun <diego@biurrun.de>2013-02-23 20:13:47 +0100
commit7432e872066d6960a9fbd31c51a94ebe6183389e (patch)
tree5554364258b9509050d235c61c36a44c16a270ce
parent040c565e51985477a8fa5e42d2ddfb26ebde6608 (diff)
downloadffmpeg-7432e872066d6960a9fbd31c51a94ebe6183389e.tar.gz
configure: Add print_3_columns helper function and use where appropriate
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 471240cc73..ffb7e76b33 100755
--- a/configure
+++ b/configure
@@ -1965,10 +1965,14 @@ die_unknown(){
exit 1
}
+print_3_columns() {
+ cat | tr ' ' '\n' | sort | pr -r -3 -t
+}
+
show_list() {
suffix=_$1
shift
- echo $* | sed s/$suffix//g | tr ' ' '\n' | sort | pr -3 -t
+ echo $* | sed s/$suffix//g | print_3_columns
exit 0
}
@@ -3841,7 +3845,7 @@ echo
for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
echo "Enabled ${type}s:"
eval list=\$$(toupper $type)_LIST
- print_enabled '_*' $list | sort | pr -r -3 -t
+ print_enabled '_*' $list | print_3_columns
echo
done