Re: Identifying files with resource forks
Re: Identifying files with resource forks
- Subject: Re: Identifying files with resource forks
- From: Tilghman Lesher <email@hidden>
- Date: Wed, 30 Mar 2011 16:33:11 -0500
- Reply-by: Wed, 19 Jan 2011 16:20:00 -0600
On Wednesday 30 March 2011 16:03:01 Adam Mercer wrote:
> Hi
>
> For some multi-platform software I distribute I'm having problems with
> what looks like files with resource forks being distributed in the
> source, when the source is extracted on Linux these resource forks
> tend to show up as follows:
>
> -rw-r--r-- 1 501 staff 240 May 13 2010 ._compat
> -rw-r--r-- 1 501 staff 240 May 13 2010 ._control
> -rw-r--r-- 1 501 staff 240 May 13 2010 ._copyright
> -rw-r--r-- 1 501 staff 240 May 13 2010 ._install
> -rwxr-xr-x 1 501 staff 240 May 13 2010 ._rules
> -rw-r--r-- 1 501 staff 2 May 13 2010 compat
> -rw-r--r-- 1 501 staff 608 May 13 2010 control
> -rw-r--r-- 1 501 staff 157 May 13 2010 copyright
> -rw-r--r-- 1 501 staff 81 May 13 2010 install
> -rwxr-xr-x 1 501 staff 442 May 13 2010 rules
>
> i.e. "._compat" is how the resource fork of the file "compat" is
> represented under Linux.
>
> I've been looking for a way to identify files with resource forks and
> strip them before packaging up the source. From what I've found the
> following should identify files that have resource forks:
>
> $ find . -type f -exec test -s {}/..namedfork/rsrc \; -print
>
> but it doesn't seem to be working, i.e. it doesn't identify the above
> files.
>
> Does anyone know of a good way to find and strip resource forks from
> files?
While I'm not sure of a good way to find resource forks, you can remove them
by using the -X option to the cp(1) command. You can also use RezWack
(located in /Developer/Tools) to split forked files, then use find(1) to
remove the resulting resource fork files (now separate from the data fork).
--
Tilghman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden