Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
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


NAME

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


DOWNLOAD

updcvs


SYNOPSIS

    updcvs tarfile


DESCRIPTION

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.


LEGALESE

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.


AUTHOR

Mike Schilli <m@perlmeister.com>


Latest update: 20-Oct-2013