DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 

Migrating from CVS to Perforce

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
DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 
Special thanks to Riester Rente Online for a generous donation!