slight simplification: use another sed expression instead of running tr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1e35c3b915
commit
9ad8907103
@ -156,7 +156,7 @@ wxconfig_flag_options="$wxconfig_yesno_options selected_config no_rpath inplace"
|
||||
# Returns NAME if _string is of the form: --NAME[=...]
|
||||
option_name()
|
||||
{
|
||||
echo "$1" | sed 's/^--//;s/=.*//' | tr '-' '_'
|
||||
echo "$1" | sed -e 's/^--//' -e 's/=.*//' -e s/-/_/g
|
||||
}
|
||||
|
||||
# option_value _string
|
||||
@ -1387,5 +1387,3 @@ fi
|
||||
# And so that's it, we're done. Have a nice build.
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user