diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-11-04 02:15:53 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-11-04 02:15:53 +0000 |
commit | bf0c4afab21199dc361aa34109b605eb79b1f868 (patch) | |
tree | 726a36df4efc8667fcd8a0e03538329349969aea | |
parent | 1b1656c67f7a12db6bb972cef0c063f2a317f684 (diff) | |
download | ffmpeg-bf0c4afab21199dc361aa34109b605eb79b1f868.tar.gz |
Speed up show_list
Originally committed as revision 10920 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 ;; |