/pidgin/main: 6e965f58e7da: Remove unneeded fix-casts.sh script.
Mark Doliner
mark at kingant.net
Wed Mar 5 02:05:32 EST 2014
Changeset: 6e965f58e7da587c25d06f6ae4edac13896158d5
Author: Mark Doliner <mark at kingant.net>
Date: 2014-03-04 23:05 -0800
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/6e965f58e7da
Description:
Remove unneeded fix-casts.sh script.
diffstat:
Makefile.am | 1 -
fix-casts.sh | 18 ------------------
2 files changed, 0 insertions(+), 19 deletions(-)
diffs (34 lines):
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,6 @@ EXTRA_DIST = \
README.hg \
README.mingw \
config.h.mingw \
- fix-casts.sh \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
diff --git a/fix-casts.sh b/fix-casts.sh
deleted file mode 100755
--- a/fix-casts.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-if [ $# -eq 0 ]; then
- echo "Usage: `basename "$0"` PurpleFoo..."
- echo
- echo "This script searches the *current working directory* and replaces casts"
- echo "with GObject-style type checking and casting macros."
- echo 'For example, "(PurpleBuddy *)b" becomes "PURPLE_BUDDY(b)".'
- exit 0
-fi
-
-for struct in $* ; do
- cast=`echo $struct | sed "s|[A-Z]|_\0|g" | tr "a-z" "A-Z" | sed "s|^_||"`
- for file in `grep -rl "([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)" . --include=*.c --exclude=purple-client-bindings.c` ; do
- sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*(|$cast(|g" $file
- sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*\([^(][^,);]*\)|$cast(\1)|g" $file
- done
-done
More information about the Commits
mailing list