docs: remove FAQ which was moved into gst-docs module
[platform/upstream/gstreamer.git] / scripts / update-funcnames
1 #!/bin/bash
2
3 set -e
4
5 if test -z "$1" -o -n "$2"; then
6     echo "Usage: $0 FILE" >&2
7     exit 1
8 fi
9
10 file=$1
11
12 function subst () {
13     from=$1
14     to=$2
15     if grep -q $from $file; then
16         echo "$file: $from->$to"
17         perl -i -p -e "s/$from/$to/g" $file
18     fi
19 }
20
21 subst gst_event_new_newsegment gst_event_new_new_segment
22 subst gst_event_parse_newsegment gst_event_parse_new_segment
23 subst gst_event_new_buffersize gst_event_new_buffer_size
24 subst gst_event_parse_buffersize gst_event_parse_buffer_size
25 subst gst_ghost_pad_new_notarget gst_ghost_pad_new_no_target
26 subst gst_tag_setter_merge gst_tag_setter_merge_tags
27 subst gst_tag_setter_get_list gst_tag_setter_get_tag_list
28 subst gst_tag_setter_get_merge_mode gst_tag_setter_get_tag_merge_mode
29 subst gst_util_clock_time_scale gst_util_uint64_scale_int