From: David Schleef Date: Thu, 2 Dec 2010 07:14:56 +0000 (-0800) Subject: element-maker: Handle names with multiple underscores X-Git-Tag: 1.19.3~507^2~16075 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a624d92cf359341bbb87a61926e891cd15e2190;p=platform%2Fupstream%2Fgstreamer.git element-maker: Handle names with multiple underscores --- diff --git a/tools/element-maker b/tools/element-maker index 9a51872067..02127a97af 100755 --- a/tools/element-maker +++ b/tools/element-maker @@ -51,16 +51,16 @@ fi PREFIX=$(echo $prefix | sed -e 's/\(.*\)/\U\1/') NAME=$(echo $name | sed -e 's/\(.*\)/\U\1/') -Prefix=$(echo $prefix | sed -e 's/_\(.\)/\U\1/' -e 's/^\(.\)/\U\1/') -Name=$(echo $name | sed -e 's/_\(.\)/\U\1/' -e 's/^\(.\)/\U\1/') +Prefix=$(echo $prefix | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/') +Name=$(echo $name | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/') GST_IS_REPLACE=${PREFIX}_IS_${NAME} GST_REPLACE=${PREFIX}_${NAME} GST_TYPE_REPLACE=${PREFIX}_TYPE_${NAME} GstReplace=${Prefix}${Name} gst_replace=${prefix}_${name} -gstreplace=${prefix}$(echo $name | sed -e 's/_//') -replace=$(echo $name | sed -e 's/_//') +gstreplace=${prefix}$(echo $name | sed -e 's/_//g') +replace=$(echo $name | sed -e 's/_//g') if [ "$REAL_NAME" = "" ] ; then REAL_NAME=FIXME