pidgin.next.minor: d529df5d: Minor fixes to the cast changing script.

rlaager at pidgin.im rlaager at pidgin.im
Fri Nov 14 01:10:34 EST 2008


-----------------------------------------------------------------
Revision: d529df5d98a33b624f6e3c00c328732f16110ed6
Ancestor: df03f4f64f6b39a434522f82a1ab7b5879436cab
Author: rlaager at pidgin.im
Date: 2008-11-14T05:38:20
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/d529df5d98a33b624f6e3c00c328732f16110ed6

Modified files:
        fix-casts.sh

ChangeLog: 

Minor fixes to the cast changing script.

-------------- next part --------------
============================================================
--- fix-casts.sh	702fa2e42bf8f1e4d76df3229715d540a611c868
+++ fix-casts.sh	48df7c1118f5bb16a5aa28d931ff11e3271c80cc
@@ -11,8 +11,8 @@ for struct in $* ; do
 
 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


More information about the Commits mailing list