Re: SVN revision number in CFBundleVersion
Re: SVN revision number in CFBundleVersion
- Subject: Re: SVN revision number in CFBundleVersion
- From: Paul Bennett <email@hidden>
- Date: Wed, 3 Aug 2005 22:24:48 +0100
On 8/1/05, Giovanni Donelli <email@hidden> wrote:
> Dear Folks,
> does anybody know a clever way to automatically insert the SVN
> revision number in CFBundleVersion into the info.plist file?
How about using Subversion keywords?
Put '$Revision$' at the appropriate place in your file, then:
$ svn propset svn:keywords Revision info.plist
to enable keyword expansion in the file.
Subversion will then expand occurrences of $Revision$ as appropriate
on next checkout.
Unfortunately Subversion's expansion includes the dollars and the
keyword; you'll have to use a script to strip it out if that's what
you want, for example:
$ perl -pi -e 's/\$Revision: (.*)\$/$1/' info.plist
pab.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden