Re: build numbers
Re: build numbers
- Subject: Re: build numbers
- From: Stephane Sudre <email@hidden>
- Date: Wed, 15 Sep 2004 17:47:31 +0200
On 15 sept. 04, at 14:28, Allan Odgaard wrote:
On 15. Sep 2004, at 13:45, Christian Schneider wrote:
is it possible to have an automatically incremented build number that
is
accessible from within a Cocoa programme? I'd like to output that
number
to a log file every time my app starts.
I'm using the CFBundleVersion and a format like "1.0b27" where the
latter part is the build number (and compliant with Apples
guidelines).
Then to increment it I use:
mv Info.plist Info.plist_backup && pl < Info.plist_backup \
| perl -pe > Info.plist 's/(CFBundleVersion =
".+\D)(\d+)(";)/$1.($2+1).$3/eg'
I only run this (as part of my build script) when I do deployment
builds. I assume you can add it to the Xcode build process.
Interestingly I recently wrote about this in my blog ;)
You don't like the version.plist file?
_______________________________________________
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