Re: Automate build numbers
Re: Automate build numbers
- Subject: Re: Automate build numbers
- From: Johan Kool <email@hidden>
- Date: Fri, 1 Sep 2006 18:56:22 +0200
To get rid of the M, make the following change.
From this:
# ugly yet functional (barely) regex by Daniel Jalkut:
#$version =~ s/([\d]*:)(\d+[M|S]*).*/$2/;
# better yet still functional regex via Kevin "Regex Nerd" Ballard
($version =~ m/\d+[MS]*$/) && ($version = $&);
to this:
# ugly yet functional (barely) regex by Daniel Jalkut:
$version =~ s/([\d]*:)(\d)+[M|S]*.*/$2/;
# better yet still functional regex via Kevin "Regex Nerd" Ballard
#($version =~ m/\d+[MS]*$/) && ($version = $&);
Note the change in location of "#" and ")"!
Johan
---
http://www.johankool.nl/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden