Migrating from CVS to Perforce
Submitted by ross on Mon, 04/05/2004 - 15:53
Here's a simple Cygwin script to migrate files from a CVS repository to Perforce.
Make sure the directory you are in, is prefaced with /cygdrive, or cygpath gets confused.
#!/bin/bash # cvs2p4.sh REPOSITORIES="example1 example2" PWD=`cygpath -w \`pwd\`` p4 edit ... for repo in $REPOSITORIES do cvs export -r HEAD $repo done find . -type f -printf '"%P" ' | p4 -x - add p4 submit