Re: Identifying files with resource forks
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meg.abyt.es; s=google; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:reply-by:x-message:mime-version:content-type :content-transfer-encoding:message-id; bh=0BYbGk90fcNmA9hn9k0yu1cOgcZvsC34JBStsO4zpNc=; b=MsyfhZwyinzspXFPzSpXn7EdY1hCtnDjb5ss55/ZZO/tm8aQ5deVax0gZe3L1H8V0V RbNrk4SqqJGvXT0ucDtKS90wrd89L1k5NZMLg9wGDZFMRLtQgZ0/SWUGkZju9GOalb1f 5SjhfaIhr0PH1G1Jgp+orkU00SfUSUpE6VKtM= Domainkey-signature: a=rsa-sha1; c=nofws; d=meg.abyt.es; s=google; h=from:to:subject:date:user-agent:references:in-reply-to:reply-by :x-message:mime-version:content-type:content-transfer-encoding :message-id; b=BS5GTkKJdrCRRD4mNMCPLb28pUXjYQPAInDNC5oYHNfBjS2e1WSdbGQ0UlF1/TLqzL k6WBA2oxGJ9n1FX/Yeegl84nZyQScHPM2M0kyQ5mdw5huNSi8dmjNh8t9pfJ+mnm/fcz 32oMfOJCwLjPiycTbVKT4DsmlBEzYJuXa26Uo= Reply-by: Wed, 19 Jan 2011 16:20:00 -0600 User-agent: KMail/1.13.5 (Linux/2.6.32-31-server; KDE/4.4.5; x86_64; ; ) 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tilghman Lesher