diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-08 18:44:03 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-08 18:44:03 +0000 |
commit | 31c0121db7829727a30c859a38cdb14e404e9547 (patch) | |
tree | 279eede9587d5f46105a365143882cc595be9df0 /configure | |
parent | a9ef1aef79d901cfa4127350e8ffbbe798c44a39 (diff) | |
download | ffmpeg-31c0121db7829727a30c859a38cdb14e404e9547.tar.gz |
configure: add print_enabled() function
The print_enabled() function prints all elements in a list which
are enabled.
Originally committed as revision 24119 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -510,6 +510,15 @@ print_config(){ done } +print_enabled(){ + test "$1" = -n && end=" " && shift || end="\n" + suf=$1 + shift + for v; do + enabled $v && printf "%s$end" ${v%$suf}; + done +} + append(){ var=$1 shift @@ -2829,9 +2838,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 - for part in $list; do - enabled $part && echo ${part%_*} - done | sort | pr -3 -t + print_enabled '_*' $list | sort | pr -3 -t echo done |