completions: remove last unnamespaced symbols.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 18 Mar 2015 18:38:15 +0000 (19:38 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Mar 2015 18:11:31 +0000 (19:11 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=744877

data/completions/gst-inspect-1.0
data/completions/gst-launch-1.0
libs/gst/helpers/gst

index 47c78af..980e140 100644 (file)
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
+_GST_HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
 
-if [[ ! -d "$HELPERDIR"  ]]; then
-       HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
+if [[ ! -d "$_GST_HELPERDIR"  ]]; then
+       _GST_HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
 else
-       HELPERDIR=`cd "$HELPERDIR"; pwd`
+       _GST_HELPERDIR=`cd "$_GST_HELPERDIR"; pwd`
 fi
 
 # Common definitions
-. "$HELPERDIR"/gst
+. "$_GST_HELPERDIR"/gst
 
-HELPER="$HELPERDIR/gst-completion-helper-1.0"
+_GST_HELPER="$_GST_HELPERDIR/gst-completion-helper-1.0"
 
 _gst_inspect_all_arguments ()
 {
@@ -38,10 +38,10 @@ _gst_inspect_all_arguments ()
 
 _gst_inspect_all_elements ()
 {
-       COMPREPLY=( $(compgen -W "$($HELPER -l)" -- $cur) )
+       COMPREPLY=( $(compgen -W "$($_GST_HELPER -l)" -- $cur) )
 }
 
-_gstinspect___atleast_version () { _mandatory__argument; }
+_gstinspect___atleast_version () { _gst_mandatory_argument; }
 
 _gstinspect___exists ()
 {
index bb0dfe5..941cf84 100644 (file)
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
+_GST_HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
 
-if [[ ! -d "$HELPERDIR" ]]; then
-       HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
+if [[ ! -d "$_GST_HELPERDIR" ]]; then
+       _GST_HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
 else
-       HELPERDIR=`cd "$HELPERDIR"; pwd`
+       _GST_HELPERDIR=`cd "$_GST_HELPERDIR"; pwd`
 fi
 
 # Common definitions
-. "$HELPERDIR"/gst
+. "$_GST_HELPERDIR"/gst
 
-HELPER="$HELPERDIR/gst-completion-helper-1.0"
+_GST_HELPER="$_GST_HELPERDIR/gst-completion-helper-1.0"
 
 _gst_launch_all_arguments ()
 {
@@ -38,20 +38,20 @@ _gst_launch_all_arguments ()
 
 _gst_complete_compatible_elements ()
 {
-       COMPREPLY=( $(compgen -W "$($HELPER --compatible-with $previous_element)" -- $cur) )
+       COMPREPLY=( $(compgen -W "$($_GST_HELPER --compatible-with $previous_element)" -- $cur) )
 }
 
 _gst_complete_all_elements ()
 {
-       COMPREPLY=( $(compgen -W "$($HELPER -l)" -- $cur) )
+       COMPREPLY=( $(compgen -W "$($_GST_HELPER -l)" -- $cur) )
 }
 
 _gst_complete_element_properties ()
 {
-       COMPREPLY=( $(compgen -W "$($HELPER --element-properties $previous_element)" -- $cur) )
+       COMPREPLY=( $(compgen -W "$($_GST_HELPER --element-properties $previous_element)" -- $cur) )
 }
 
-_gstlaunch___exclude_ () { _mandatory__argument; }
+_gstlaunch___exclude_ () { _gst_mandatory_argument; }
 
 _gst_launch_main ()
 {
index 76275e6..c8bcee8 100644 (file)
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-___gst_debug_level () { _mandatory__argument; }
-___gst_debug () { _mandatory__argument; }
-___gst_debug_color_mode () { _mandatory__argument; }
-___gst_plugin_path () { _mandatory__argument; }
-___gst_plugin_load () { _mandatory__argument; }
+___gst_debug_level () { _gst_mandatory_argument; }
+___gst_debug () { _gst_mandatory_argument; }
+___gst_debug_color_mode () { _gst_mandatory_argument; }
+___gst_plugin_path () { _gst_mandatory_argument; }
+___gst_plugin_load () { _gst_mandatory_argument; }
 
-_mandatory__argument ()
+_gst_mandatory_argument ()
 {
        if [[ "$prev" != "$command" ]]
        then