Manu Sridharan (blog) left a comment the other day on my old post on my script to merge multiple TeX files (and strip the comments) for posting to ArXiV. He’s created a git repository for it, which seem so much more official and stuff. It’s at:
https://gist.github.com/2175026
Thanks a bunch, Manu!
As a side note, Péter Gács has a de-macro script to eliminate all of your private macros if you’re so inclined.
The original post shows up surprisingly high when I google for myself.
I’d be shocked if the de-macro script actually works on my papers. There is no way to separate TeX’s execution from macro expansion. It is not at all like the C preprocessor. That said, I suspect few people write macros quite like mine in papers.
We cannot all be as fancy as you! I imagine that for simple uses of \newcommand and \def it will work out ok. Personally, I’ve not needed to de-macro anything.