Selectively Export SVN Directory
Is it possible to export an SVN directory while ignoring certain file extensions? (Say, .cpp
?)
I need to export my header files, which contain my library's 开发者_C百科symbols, to some other folder where I'll zip them up along with the finished static/dynamic library products. Normally I'd just move the header files up a level in the directory and use the --depth
option, but a few of the headers #include
other required headers deeper in the directory.
- Export svn repository
- Go to the exported directory
- Run from command line (to copy *.h files only):
find . -name \*.h -print | xargs cp -t pathToYourDestinationDir/
I tested to .php files:
find . -name \*.php -print | xargs cp -t ../test2/
I couldn't find a way to selectively export a directory, but what you can do is export it normally and then run the following on the new directory:
find NewDirectory -name \*.Extension -delete
This will remove all *.Extension
files.
精彩评论