mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
40f3b4a651
commit
9f38ae9227
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue