diff options
author | David Schleef <ds@schleef.org> | 2011-04-16 19:42:48 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2011-04-24 19:40:09 -0700 |
commit | 9f38ae9227608449143ae7bf671f1823cbdbec09 (patch) | |
tree | 694b4176e1a4a24b7dd5620680ae42902a8874cd /tools | |
parent | 40f3b4a6512a65e13ec44667fcc354d2eacaa4de (diff) | |
download | gstreamer-plugins-bad-9f38ae9227608449143ae7bf671f1823cbdbec09.tar.gz |
element-maker: lowercasify input
This allows using capitalized acronyms in class names, so using
"AVC_src" on the command line will create filename gstavcsrc.c,
class name GstAVCSrc, and symbol names gst_avc_src_*.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gst-element-maker | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 53b26cac8..777df1262 100755 --- a/tools/gst-element-maker +++ b/tools/gst-element-maker @@ -54,6 +54,7 @@ PREFIX=$(echo $prefix | sed -e 's/\(.*\)/\U\1/') NAME=$(echo $name | sed -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/') +name=$(echo $name | sed -e 's/\(.*\)/\L\1/') GST_IS_REPLACE=${PREFIX}_IS_${NAME} GST_REPLACE=${PREFIX}_${NAME} |