projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e129b0
)
element-maker: Handle names with multiple underscores
author
David Schleef
<ds@schleef.org>
Thu, 2 Dec 2010 07:14:56 +0000
(23:14 -0800)
committer
David Schleef
<ds@schleef.org>
Thu, 2 Dec 2010 07:24:24 +0000
(23:24 -0800)
tools/element-maker
patch
|
blob
|
history
diff --git
a/tools/element-maker
b/tools/element-maker
index 9a51872067a33651b0199eb562444aa566742e9e..02127a97af98c15bb0d59c8d01913b63f8132843 100755
(executable)
--- 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/')
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}
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
if [ "$REAL_NAME" = "" ] ; then
REAL_NAME=FIXME