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_*.
This commit is contained in:
David Schleef 2011-04-16 19:42:48 -07:00
parent 40f3b4a651
commit 9f38ae9227

View file

@ -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}