Mike Schilli's Friendly Neighborhood Perl Shop

CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: updcvs

updcvs - Update the CVS working tree with a *.tgz file


    updcvs - Update the CVS working tree with a *.tgz file




    updcvs tarfile


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.


Mike Schilli <m@perlmeister.com>

Latest update: 20-Oct-2013