g_thread_create() is deprecated in GLib master, use g_thread_try_new() instead
[glsdk/gstreamer0-10.git] / scripts / update-macros
1 #!/bin/bash
3 set -e
5 if test -z "$1" -o -n "$2"; then
6     echo "Usage: $0 FILE" >&2
7     exit 1
8 fi
10 file=$1
12 if grep -q GST_GET_LOCK $file; then
13     echo "$file: GST_GET_LOCK->GST_OBJECT_GET_LOCK"
14     perl -i -p -e 's/GST_GET_LOCK/GST_OBJECT_GET_LOCK/g' $file
15 fi
17 if egrep -q 'GST_LOCK' $file; then
18     echo "$file: GST_LOCK->GST_OBJECT_LOCK"
19     perl -i -p -e 's/GST_LOCK/GST_OBJECT_LOCK/g' $file
20 fi
22 if egrep -q 'GST_UNLOCK' $file; then
23     echo "$file: GST_UNLOCK->GST_OBJECT_UNLOCK"
24     perl -i -p -e 's/GST_UNLOCK/GST_OBJECT_UNLOCK/g' $file
25 fi