aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-11-04 02:15:53 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-11-04 02:15:53 +0000
commitbf0c4afab21199dc361aa34109b605eb79b1f868 (patch)
tree726a36df4efc8667fcd8a0e03538329349969aea /configure
parent1b1656c67f7a12db6bb972cef0c063f2a317f684 (diff)
downloadffmpeg-bf0c4afab21199dc361aa34109b605eb79b1f868.tar.gz
Speed up show_list
Originally committed as revision 10920 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 69cd10b3fd..f86e127315 100755
--- a/configure
+++ b/configure
@@ -936,9 +936,9 @@ die_unknown(){
}
show_list() {
- for part in $*; do
- echo $part | sed 's/_[^_]*$//'
- done | sort
+ suffix=_$1
+ shift
+ echo $* | sed s/$suffix//g | tr ' ' '\n' | sort
exit 0
}
@@ -1016,8 +1016,8 @@ for opt do
--list-*)
NAME="${opt#--list-}"
is_in $NAME $COMPONENT_LIST || die_unknown $opt
- NAME=$(toupper ${NAME%s})
- eval show_list \$${NAME}_LIST
+ NAME=${NAME%s}
+ eval show_list $NAME \$$(toupper $NAME)_LIST
;;
--help|-h) show_help
;;