Commit bf0c4afa authored by Ramiro Polla's avatar Ramiro Polla

Speed up show_list

Originally committed as revision 10920 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1b1656c6
......@@ -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
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment