Loading ...
Sorry, an error occurred while loading the content.

1168Re: Eliminating StuffIt from the OS X build process (was Re: Panther gVim)

Expand Messages
  • Gregory Seidman
    Oct 24, 2003
    • 0 Attachment
      On Fri, Oct 24, 2003 at 03:48:02PM -0700, dan sandler wrote:
      [...]
      } Suggestion 1: Use the OS X pseudo-file spec to manipulate resources
      [...]
      } cat gui_mac.rsrc/..namedfork/rsrc > os_mac.rsr.rsrcfork
      } cat gui_mac.rsrc/..namedfork/data > os_mac.rsr.datafork
      [...]
      } At build time, reverse the procedure:
      }
      } # fictitious Makefile excerpt
      } gui_mac.rsrc:
      } touch gui_mac.rsrc # need to have the file present first
      } cat os_mac.rsr.rsrcfork > gui_mac.rsrc/..namedfork/rsrc
      } cat os_mac.rsr.datafork > gui_mac.rsrc/..namedfork/data

      Or, very slightly easier:

      gui_mac.rsrc:
      cp os_mac.rsr.datafork gui_mac.rsrc
      cat os_mac.rsr.rsrcfork > gui_mac.rsrc/..namedfork/rsrc

      } Downside: I believe the ..namedfork spec was introduced in OS X 10.2,
      } so you might be limiting the platforms on which vim can be built.

      It works on my 10.1 system. Can't speak for 10.0, though.

      [...]
      --Greg
    • Show all 23 messages in this topic