Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7e9e7cc2
Commit
7e9e7cc2
authored
Nov 29, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: fix indentation in option parsing loop
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
3bbe63d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
60 deletions
+60
-60
configure
configure
+60
-60
No files found.
configure
View file @
7e9e7cc2
...
...
@@ -1944,66 +1944,66 @@ do_random(){
for
opt
do
optval
=
"
${
opt
#*=
}
"
case
"
$opt
"
in
--extra-ldflags
=
*
)
add_ldflags
$optval
;;
--extra-libs
=
*
)
add_extralibs
$optval
;;
--disable-devices
)
disable
$INDEV_LIST
$OUTDEV_LIST
;;
--enable-debug
=
*
)
debuglevel
=
"
$optval
"
;;
--disable-programs
)
disable
$PROGRAM_LIST
;;
--disable-everything
)
map
'eval unset \${$(toupper ${v%s})_LIST}'
$COMPONENT_LIST
;;
--enable-random
|
--disable-random
)
action
=
${
opt
%%-random
}
do_random
${
action
#--
}
$COMPONENT_LIST
;;
--enable-random
=
*
|
--disable-random
=
*
)
action
=
${
opt
%%-random=*
}
do_random
${
action
#--
}
$optval
;;
--enable-
*
=
*
|
--disable-
*
=
*
)
eval
$(
echo
"
${
opt
%%=*
}
"
|
sed
's/--/action=/;s/-/ thing=/'
)
is_in
"
${
thing
}
s"
$COMPONENT_LIST
||
die_unknown
"
$opt
"
eval
list
=
\$
$(
toupper
$thing
)
_LIST
name
=
$(
echo
"
${
optval
}
"
|
sed
"s/,/_
${
thing
}
|/g"
)
_
${
thing
}
$action
$(
filter
"
$name
"
$list
)
;;
--enable-
?
*
|
--disable-
?
*
)
eval
$(
echo
"
$opt
"
|
sed
's/--/action=/;s/-/ option=/;s/-/_/g'
)
if
is_in
$option
$COMPONENT_LIST
;
then
test
$action
=
disable
&&
action
=
unset
eval
$action
\$
$(
toupper
${
option
%s
})
_LIST
elif
is_in
$option
$CMDLINE_SELECT
;
then
$action
$option
else
die_unknown
$opt
fi
;;
--list-
*
)
NAME
=
"
${
opt
#--list-
}
"
is_in
$NAME
$COMPONENT_LIST
||
die_unknown
$opt
NAME
=
${
NAME
%s
}
eval
show_list
$NAME
\$
$(
toupper
$NAME
)
_LIST
;;
--help
|
-h
)
show_help
;;
*
)
optname
=
"
${
opt
%%=*
}
"
optname
=
"
${
optname
#--
}
"
optname
=
$(
echo
"
$optname
"
|
sed
's/-/_/g'
)
if
is_in
$optname
$CMDLINE_SET
;
then
eval
$optname
=
'$optval'
elif
is_in
$optname
$CMDLINE_APPEND
;
then
append
$optname
"
$optval
"
else
die_unknown
$opt
fi
;;
--extra-ldflags
=
*
)
add_ldflags
$optval
;;
--extra-libs
=
*
)
add_extralibs
$optval
;;
--disable-devices
)
disable
$INDEV_LIST
$OUTDEV_LIST
;;
--enable-debug
=
*
)
debuglevel
=
"
$optval
"
;;
--disable-programs
)
disable
$PROGRAM_LIST
;;
--disable-everything
)
map
'eval unset \${$(toupper ${v%s})_LIST}'
$COMPONENT_LIST
;;
--enable-random
|
--disable-random
)
action
=
${
opt
%%-random
}
do_random
${
action
#--
}
$COMPONENT_LIST
;;
--enable-random
=
*
|
--disable-random
=
*
)
action
=
${
opt
%%-random=*
}
do_random
${
action
#--
}
$optval
;;
--enable-
*
=
*
|
--disable-
*
=
*
)
eval
$(
echo
"
${
opt
%%=*
}
"
|
sed
's/--/action=/;s/-/ thing=/'
)
is_in
"
${
thing
}
s"
$COMPONENT_LIST
||
die_unknown
"
$opt
"
eval
list
=
\$
$(
toupper
$thing
)
_LIST
name
=
$(
echo
"
${
optval
}
"
|
sed
"s/,/_
${
thing
}
|/g"
)
_
${
thing
}
$action
$(
filter
"
$name
"
$list
)
;;
--enable-
?
*
|
--disable-
?
*
)
eval
$(
echo
"
$opt
"
|
sed
's/--/action=/;s/-/ option=/;s/-/_/g'
)
if
is_in
$option
$COMPONENT_LIST
;
then
test
$action
=
disable
&&
action
=
unset
eval
$action
\$
$(
toupper
${
option
%s
})
_LIST
elif
is_in
$option
$CMDLINE_SELECT
;
then
$action
$option
else
die_unknown
$opt
fi
;;
--list-
*
)
NAME
=
"
${
opt
#--list-
}
"
is_in
$NAME
$COMPONENT_LIST
||
die_unknown
$opt
NAME
=
${
NAME
%s
}
eval
show_list
$NAME
\$
$(
toupper
$NAME
)
_LIST
;;
--help
|
-h
)
show_help
;;
*
)
optname
=
"
${
opt
%%=*
}
"
optname
=
"
${
optname
#--
}
"
optname
=
$(
echo
"
$optname
"
|
sed
's/-/_/g'
)
if
is_in
$optname
$CMDLINE_SET
;
then
eval
$optname
=
'$optval'
elif
is_in
$optname
$CMDLINE_APPEND
;
then
append
$optname
"
$optval
"
else
die_unknown
$opt
fi
;;
esac
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment