• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SVN revision number in CFBundleVersion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >SVN revision number in CFBundleVersion (From: Giovanni Donelli <email@hidden>)

  • Prev by Date: Re: NSOutlineView bug?
  • Next by Date: Re: CoreData - re-faulting object and removing self-observers results in messages being sent to zombie
  • Previous by thread: Re: SVN revision number in CFBundleVersion
  • Next by thread: plugins
  • Index(es):
    • Date
    • Thread