pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Getting the latest pkgsrc.tar.gz



On 5/28/06, Geert Hendrickx <ghen%telenet.be@localhost> wrote:
On Sun, May 28, 2006 at 01:36:14PM +0400, Rakhesh Sasidharan wrote:
> Oh ok. Quick question: A package usually has files like "Makefile" and
> "PLIST" and "DESCR" and so on. Once the package is no longer maintained,
> these files wont be there in the repository. So does "cvs up -dP" take
> care of removing these files from the unmaintained package directory the
> local tree, or do these files too remain?
>
> I would have assumed that yes, "cvs up -dP" does remove a file from the
> local store if its not present in the repository, but then that would
> mean all the local README.html files too would have been removed long ago
> by the command (they are present locally but not in the repository).
> Which is obviously not the case ...

Because the README.html files are not under revision control, cvs doesn't
touch them.  And if a directory is not empty, cvs up -dP doesn't prune it.

If you want to get rid of all the README.html files at once, you can do:

find /usr/pkgsrc -name README.html | xargs rm

find /usr/pkgsrc -name README.html | while read XYZ ; do ( cd
${XYZ%/README.html} ; [[ -f Makefile ]] || rm README.html ) ; done


        Geert




Home | Main Index | Thread Index | Old Index