Wednesday, March 19, 2008

useful tar option for achieving source code from VCS system

When you achieve source code from VCS system (e.g. cvs, svn, git .etc), the following tar option is useful:
--exclude-vcs  exclude version control system directories
  • As of tar version 1.19, the following files are excluded:
  • ‘CVS/’, and everything under it
  • ‘RCS/’, and everything under it
  • ‘SCCS/’, and everything under it
  • ‘.git/’, and everything under it
  • ‘.gitignore’
  • ‘.cvsignore’
  • ‘.svn/’, and everything under it
  • ‘.arch-ids/’, and everything under it
  • ‘{arch}/’, and everything under it
  • ‘=RELEASE-ID’
  • ‘=meta-update’
  • ‘=update’
for example:
tar -cjf linux.tar.bz2 --exclude-vcs linux

1 comment:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the TV de Plasma, I hope you enjoy. The address is http://tv-de-plasma.blogspot.com. A hug.