xscc: First commit

This is a script probably first written by Vishal Goenka. I have
modified it to work better with D files.