开发者

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.


  1. Export svn repository
  2. Go to the exported directory
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜