mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
element-maker: Handle names with multiple underscores
This commit is contained in:
parent
0e129b05f5
commit
0a624d92cf
1 changed files with 4 additions and 4 deletions
|
@ -51,16 +51,16 @@ fi
|
||||||
|
|
||||||
PREFIX=$(echo $prefix | sed -e 's/\(.*\)/\U\1/')
|
PREFIX=$(echo $prefix | sed -e 's/\(.*\)/\U\1/')
|
||||||
NAME=$(echo $name | 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/')
|
Prefix=$(echo $prefix | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/')
|
||||||
Name=$(echo $name | sed -e 's/_\(.\)/\U\1/' -e 's/^\(.\)/\U\1/')
|
Name=$(echo $name | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/')
|
||||||
|
|
||||||
GST_IS_REPLACE=${PREFIX}_IS_${NAME}
|
GST_IS_REPLACE=${PREFIX}_IS_${NAME}
|
||||||
GST_REPLACE=${PREFIX}_${NAME}
|
GST_REPLACE=${PREFIX}_${NAME}
|
||||||
GST_TYPE_REPLACE=${PREFIX}_TYPE_${NAME}
|
GST_TYPE_REPLACE=${PREFIX}_TYPE_${NAME}
|
||||||
GstReplace=${Prefix}${Name}
|
GstReplace=${Prefix}${Name}
|
||||||
gst_replace=${prefix}_${name}
|
gst_replace=${prefix}_${name}
|
||||||
gstreplace=${prefix}$(echo $name | sed -e 's/_//')
|
gstreplace=${prefix}$(echo $name | sed -e 's/_//g')
|
||||||
replace=$(echo $name | sed -e 's/_//')
|
replace=$(echo $name | sed -e 's/_//g')
|
||||||
|
|
||||||
if [ "$REAL_NAME" = "" ] ; then
|
if [ "$REAL_NAME" = "" ] ; then
|
||||||
REAL_NAME=FIXME
|
REAL_NAME=FIXME
|
||||||
|
|
Loading…
Reference in a new issue