[Top][All Lists]

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


From: Mark D. Baushke
Subject: Re: CVS EXPORT
Date: Tue, 29 Apr 2003 02:41:38 -0700

Samuel Blanchet <address@hidden> writes:

> I would like that 'cvs export' never removes empty directories.
> How can I do that ?


I am not aware of a way to do it directly. If you want it done directly,
I suppose you will need to fix the sources and submit a patch to
address@hidden after you have implemented your hack... You will also need
to document why this is a good idea in the first place.

An indirect method would be

  cvs checkout module-foo
  cd module-foo
  find . -type d -print |grep -v '/CVS$' > /tmp/save-dirnames.module-foo
  cd ..
  /bin/rm -fr module-foo
  cvs export module-foo
  cd module-foo
  xargs mkdir -p < /tmp/save-dirnames.module-foo
However, you may need to be careful about directory names that have
spaces in them...

        -- Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]