[OS X TeX] Unix expert help needed
markoilcan at gmail.com
Fri May 25 10:02:36 EDT 2007
On 5/24/07, Peter Dyballa <Peter_Dyballa at web.de> wrote:
> Am 24.05.2007 um 12:04 schrieb Bruno Voisin:
> > Is there a way of getting rid of these resource files before
> > creating the archive of a directory, to be used afterwards on a
> > Linux or Windows computer? Or are resource forks automatically
> > discarded when creating a .tar.gz or .tar.bz2 archive?
> This is so simple with tar, compared to zip, that it's hard to
> believe no-one found it before:
> tar jcf --exclude __MACOSX --exclude .DS_Store <archive> <source(s)>
> tar zcf --exclude __MACOSX --exclude .DS_Store <archive> <source(s)>
> And it's easy to add more --exclude patterns.
That only works if files with those patterns already exist in
<source>. In general, those files, as well as ._ files don't exist on
the filesystem as separate files and are not created until the tar
takes place and, thus, are not excluded. Also, note that the above
won't work properly because you have to put <archive> after the "f"
command line option. As it is, tar will try to create an archive named
--exclude, which is certainly not what you are intending.
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX