Re: command-line support for AppleSingle encoding?
Jens Miltner <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.gui.user |
|---|---|
| Message-ID | <[email protected]> |
Am 31.07.2007 um 23:15 schrieb typeaarlo:
> Hello,
>
> Do any versions of MacCVS include a command-line interface that
> manages AppleSingle
> encoding of resource forks? I need to access some repositories that
> have resource forks
> embedded into the RCS files, and the regular CVS command line
> doesn't know what to do
> with this.
>
> I've seen several references to a MacCVS command line interface,
> but I downloaded a couple
> versions and I couldn't tell what I was looking at other than the
> GUI application.
>
> Thanks,
> -Arlo
>
>
MacCvsX has the commandline tool embedded in it's Resources folder
inside the application package.
There are no commandline options to enforce AppleSingle encoding of
resource forks, but you should be able to use environment variables
to do the job.
Alternatively, you can download and install the cvsnt tool from
<http://cvsvnt.org>, which also supports the same resource fork options.
Do you just want to retrieve files with encoded resource forks from
the server, or do you want to submit files with resource forks to the
cvs server?
If you just want to retrieve files from the cvs repository, you don't
have to do anything special - the embedded cvs tool will recognize
the format and automatically decode the files.
When submitting files to the cvs repository, you'll need to set some
environment variables or Internet Config settings to tell cvsgui
which encoding to use:
the environment variable to set is "MAC_BINARY_TYPES_SINGLE". The
value you set is a semicolon delimited list of file types.
If you're using MacCvsX 3.3a2 from the sourceforge downloads, you can
only specify HFS file types.
If you're using a self-built later version, you can specify HFS file
types and/or filename extensions for the mapping.
Here's an example of how to set it using HFS file types alone:
setenv MAC_BINARY_TYPES_SINGLE 'RSRC;PNG ;W8bn;'
Here's an example of how to set it using HFS file types + filename
extensions:
setenv MAC_BINARY_TYPES_SINGLE 'RSRC;????/rsrc;????/tiff;????/
myfancyformat'
In the latter format, each semicolon separated entry contains an HFS
file type plus an optional filename extension separated by a '/'
character. For backward compatibility, the filename extension is
optional. An HFS file type of '????' acts as a wildcard, i.e. in that
case only the filename extension is considered for matching.
The above example will use the AppleSingle encoding in the following
cases:
- the file has an HFS file type of 'RSRC'
- the file has an extension '.rsrc'
- the file has an extension '.tiff'
- the file has an extension '.myfancyformat'
HTH,
</jum>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cvsgui/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/cvsgui/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/