Prepare for uploading source.