From: David Schleef Date: Tue, 2 Apr 2013 03:12:57 +0000 (-0700) Subject: gst-element-maker: create better element name when using --prefix X-Git-Tag: 1.19.3~507^2~13845 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a70924251c257e9c7dbdb718421a2b68fa21a83;p=platform%2Fupstream%2Fgstreamer.git gst-element-maker: create better element name when using --prefix --- diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 8a9b29ef11..facb242ead 100755 --- a/tools/gst-element-maker +++ b/tools/gst-element-maker @@ -64,6 +64,11 @@ GstReplace=${Prefix}${Name} gst_replace=${prefix}_${name} gstreplace=${prefix}$(echo $name | sed -e 's/_//g') replace=$(echo $name | sed -e 's/_//g') +if [ "${prefix}" = gst ] ; then + prefixreplace=$replace +else + prefixreplace=$gstreplace +fi if [ "$REAL_NAME" = "" ] ; then REAL_NAME=FIXME @@ -169,7 +174,7 @@ cat <$gstreplace.c generate_header | sed \ @@ -371,6 +377,7 @@ generate_header | sed \ -e "s/GstReplace/$GstReplace/g" \ -e "s/gst_replace/$gst_replace/g" \ -e "s/gstreplace/$gstreplace/g" \ + -e "s/prefixreplace/$prefixreplace/g" \ -e "s/replace/$replace/g" >$gstreplace.h gst-indent $gstreplace.c