From 9ad8907103bb955bd83f57472f2d91d7ec21e627 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 16 Oct 2013 17:09:07 +0000 Subject: [PATCH] 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 --- wx-config.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wx-config.in b/wx-config.in index 2fccbbd498..d405729fa1 100755 --- a/wx-config.in +++ b/wx-config.in @@ -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 - -