Hi Adam,

* Adam Mercer wrote on Wed, Mar 30, 2011 at 03:50:40PM CEST:
> When I build distribution tarballs on my Mac sometimes resource forks
> find their way into the tarball and then when they are extracted on
> another platform, Debian for example, these resource forks show up as
> separate files of the for ._*, e.g.:
> 
> ldg-cert-util-2.5/debian# ls -la
> total 68
> drwxr-xr-x 2 501 staff 4096 Mar 30 09:13 .
> drwxr-xr-x 5 501 staff 4096 Mar 29 20:54 ..
> -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
[...]
> Is there some rule that I can add that will strip any resource forks
> from files before adding them to the distribution?

dist-hook: remove-mac-resource-forks
remove-mac-resource-forks:
        rm -f $(DISTDIR)/._*

?  I'm not sure what the exact glob for those resource forks is.

Cheers,
Ralf

Reply via email to