fix-casts.sh

Wed, 04 Jun 2025 23:47:08 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 04 Jun 2025 23:47:08 -0500
branch
release-2.x.y
changeset 43264
50facee54d1d
parent 24975
7abe1341dc45
permissions
-rwxr-xr-x

Remove the retro protocol plugins

This removes gadu-gadu, novell, sametime, silc, silc10, and zephyr as they are
all being migrated to retro-prpl.

Testing Done:
Ran `make distcheck` and built the windows installer and verified that both worked as expected and that the uninstaller didn't remove the files. I did have to clean my `win32-install-dir` as that had contained previous builds of the now deleted protocols.

Bugs closed: PIDGIN-18098

Reviewed at https://reviews.imfreedom.org/r/4019/

24973
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
1 #!/bin/sh
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
2
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
3 if [ $# -eq 0 ]; then
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
4 echo "Usage: `basename "$0"` PurpleFoo..."
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
5 echo
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
6 echo "This script searches the *current working directory* and replaces casts"
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
7 echo "with GObject-style type checking and casting macros."
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
8 echo 'For example, "(PurpleBuddy *)b" becomes "PURPLE_BUDDY(b)".'
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
9 exit 0
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
10 fi
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
11
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
12 for struct in $* ; do
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
13 cast=`echo $struct | sed "s|[A-Z]|_\0|g" | tr "a-z" "A-Z" | sed "s|^_||"`
24975
7abe1341dc45 Minor fixes to the cast changing script.
Richard Laager <rlaager@pidgin.im>
parents: 24973
diff changeset
14 for file in `grep -rl "([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)" . --include=*.c --exclude=purple-client-bindings.c` ; do
7abe1341dc45 Minor fixes to the cast changing script.
Richard Laager <rlaager@pidgin.im>
parents: 24973
diff changeset
15 sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*(|$cast(|g" $file
7abe1341dc45 Minor fixes to the cast changing script.
Richard Laager <rlaager@pidgin.im>
parents: 24973
diff changeset
16 sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*\([^(][^,);]*\)|$cast(\1)|g" $file
24973
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
17 done
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents:
diff changeset
18 done

mercurial