Tuesday, September 05, 2006

CVS: Tag files in multiple projects with same version

Invoke the following script to add a cvs version tag to multiple files ...

cvstag ver-1_2_3

------------ cvstag ------------
#!/bin/sh -x

export version=$1
export parts="part1 part2 part3"

mkdir /tmp/app
cd /tmp/app

for prj in $parts
do
cvs co $prj
cvs tag -R $version $prj
done

for prj in $parts
do
du -msk $prj
done

cd /tmp
rm -r app

No comments: