This is copy of source code from GNAThub's build/gen-src.
