I believe you can just erase the files you've modified and don't want to keep, and execute "repo sync" again.
To the OP: the direct links to battery percentage scripts from Lenny don't work anymore.
Hi Jack, nice to bump into you again
I thought that as well originally but noticed in after a repo sync they were not replaced. Maybe I did something else that prevented it from replacing the missing files? It certainly makes sense that it would work...
May you please update the rooting part? It seems it won't work anymore, as I don't find both su executable and Superuser.apk in my final system (no errors though besides some strings I had to reformat).
The biggest problem I had was with the "_mktemp" issue. I just edited su.c which took care of that, but it looks like someone has committed an edit to that file with cyanogens github. I'll just clone from cm next time around, thanks