Selective SVN Directory Export

Is it possible to export the SVN directory while ignoring certain file extensions? (Say .cpp?)

I need to export the header files that contain my library symbols to another folder, in which I will loop them along with the ready-made static / dynamic library products. Usually I just move the header files a level in the directory and use the option --depth, but a few headers of the #includeother required headers are deeper in the directory.

+3
source share
2 answers

I could not find a way to selectively export the directory, but what you can do is export it normally, and then run the following in a new directory:

find NewDirectory -name \*.Extension -delete

*.Extension.

0
  • svn
  • ( *.h ):

find . -name \*.h -print | xargs cp -t pathToYourDestinationDir/

.php:

find . -name \*.php -print | xargs cp -t ../test2/

0

All Articles