man: remove OIL_CPU_FLAGS from man page
[platform/upstream/gstreamer.git] / tools / gstreamer-completion
1 #
2 # Put this in /etc/bash_completion.d/
3 #
4
5 _gst_launch()
6 {
7   local cur
8
9   : ${GST_REGISTRY:=~/.gstreamer-0.10/registry.xml}
10   : ${GST_COMPLETE:=~/.gstreamer-0.10/complete}
11
12   if [ ! -f "${GST_REGISTRY}" ] ; then
13     return 0
14   fi
15
16   if [ ! -f "${GST_COMPLETE}" \
17        -o "${GST_REGISTRY}" -nt "${GST_COMPLETE}" ] ; then
18     sed -n 's/^..<name>\(.*\)<\/name>/\1/ p' ${GST_REGISTRY} >${GST_COMPLETE}
19   fi
20
21   cur=${COMP_WORDS[COMP_CWORD]}
22   COMPREPLY=( $(grep ^$cur $GST_COMPLETE) )
23
24   return 0
25 }
26 complete -F _gst_launch -o default gst-launch
27