[ANSOL-geral]desespero - o cvs goza comigo

Luciano Miguel Ferreira Rocha strange arroba nsk.yi.org
Wed, 20 Mar 2002 02:17:09 +0000


Não tenho acesso cvs,

-----------------------------------------------------------------------
Removing directories
====================

   In concept removing directories is somewhat similar to removing
files--you want the directory to not exist in your current working
directories, but you also want to be able to retrieve old releases in
which the directory existed.

   The way that you remove a directory is to remove all the files in
it.  You don't remove the directory itself; there is no way to do that.
Instead you specify the `-P' option to `cvs update' or `cvs checkout',
which will cause CVS to remove empty directories from working
directories.  (Note that `cvs export' always removes empty directories.)
Probably the best way to do this is to always specify `-P'; if you want
an empty directory then put a dummy file (for example `.keepme') in it
to prevent `-P' from removing it.
-----------------------------------------------------------------------

(resumidamente: rm -f dir/* ; cvs rm dir/files ; cvs ci ; cvs up -P)

No entanto, a própria directoria não é removida no repositório CVS,
e não vejo inconveniente nisso, mas se quiseres mesmo removê-la,
ignorando assim os ficheiros anteriores que lá se encontravam,
podes fazer um simples rm -fr $CVSROOT/project/dir

Cumps,
Luciano Rocha

-- 
Luciano Rocha, strange arroba nsk.yi.org

The trouble with computers is that they do what you tell them, not what
you want.
                -- D. Cohen