mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Speed up show_list
Originally committed as revision 10920 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1b1656c67f
commit
bf0c4afab2
10
configure
vendored
10
configure
vendored
@ -936,9 +936,9 @@ die_unknown(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_list() {
|
show_list() {
|
||||||
for part in $*; do
|
suffix=_$1
|
||||||
echo $part | sed 's/_[^_]*$//'
|
shift
|
||||||
done | sort
|
echo $* | sed s/$suffix//g | tr ' ' '\n' | sort
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1016,8 +1016,8 @@ for opt do
|
|||||||
--list-*)
|
--list-*)
|
||||||
NAME="${opt#--list-}"
|
NAME="${opt#--list-}"
|
||||||
is_in $NAME $COMPONENT_LIST || die_unknown $opt
|
is_in $NAME $COMPONENT_LIST || die_unknown $opt
|
||||||
NAME=$(toupper ${NAME%s})
|
NAME=${NAME%s}
|
||||||
eval show_list \$${NAME}_LIST
|
eval show_list $NAME \$$(toupper $NAME)_LIST
|
||||||
;;
|
;;
|
||||||
--help|-h) show_help
|
--help|-h) show_help
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user