See section Tracking third-party sources, and See section Creating a directory tree from a number of files.