CVS repository: https://russ.yanofsky.org/viewvc.py/rcsimport
Command line utility to generate rcs files using history from flat files. Pretty well documented and organized. Also has the ability to import whole directory trees and read project metadata from XML.