Identifying files with resource forks
Identifying files with resource forks
- Subject: Identifying files with resource forks
- From: Adam Mercer <email@hidden>
- Date: Wed, 30 Mar 2011 16:03:01 -0500
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?
Cheers
Adam
_______________________________________________
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