changeset 25828:c3ca613ab550

Minor fixes to the cast changing script.
author Richard Laager <rlaager@wiktel.com>
date Fri, 14 Nov 2008 05:38:20 +0000
parents 0e08c847517d
children 4d19a03b72e6
files fix-casts.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/fix-casts.sh	Fri Nov 14 05:32:35 2008 +0000
+++ b/fix-casts.sh	Fri Nov 14 05:38:20 2008 +0000
@@ -11,8 +11,8 @@
 
 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` ; do
-		sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*(|$cast(|" $file
-		sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*\([^(][^,);]*\)|$cast(\1)|" $file
+	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