[OS X TeX] Unix expert help needed

M A markoilcan at gmail.com
Thu May 24 18:33:23 CEST 2007


On 5/24/07, M A <markoilcan at gmail.com> wrote:
>
> If you are in a directory that has a subdirectory "stuff" that you
> want to archive without resource forks, do the following:
>
> ditto -ck --norsrc --keepParent stuff stuff.zip
>
> The archive stuff.zip will now unzip into a directory "stuff" whose
> files have resource forks stripped off. To create a tar archive some
> additional work is needed. This will do the trick:
>
> ditto -c --norsrc --keepParent stuff /tmp/x.cpio; cd /tmp; cpio -i -I
> x.cpio; tar cvf stuff.tar stuff
>
> This will leave you with stuff.tar in /tmp along with the directory
> stuff and the cpio file x.cpio.
>

I guess I should point out that if you don't mind having a new directory name in
your tar archive, the following is easier:

ditto --norsrc stuff stuff2; tar cvf stuff2.tar stuff

Mark A

------------------------- 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 macostex-archives mailing list