If you have a project project-name in CVS, there might be times
when you want to update it with a distribution tarball, because
you might have checked it in somewhere else and updated it there.
So, you'll obtain project-name-1.42.tgz from somewhere,
which will contain the subdirectory
project-name-1.42, which in turn contains all the project files.
In order to update your CVS dir, you will have to
Rename your CVS dir project-name to project-name.CVS
Untar the tarfile, which will result in a directory
project-name-1.42.
Rename project-name-1.42 to project-name
Tar up project-name to project-name.tgz.
Delete the now obsolete directory project-name.
Rename project-name.CVS back to project-name.
Untar project-name.tgz to update all files in project-name
with the latest versions from the distribution.
This script will make it easier for you. All you have to do is
go to the directory which contains the project directory and
call updcvs with the distribution tarball's name:
updcvs project-dir-1.42.tgz
and the steps listed above will be performed automatically.
Copyright 2002 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.