Re: Adding a revision number to Info.plist

From: Pierre Frisch (pierre.frisc..pearway.com)
Date: Tue Dec 02 2008 - 19:58:24 EST

  • Next message: Chuck Hill: "Re: Adding a revision number to Info.plist"

                    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />
                    <svn>
                            <wcVersion path="${project.dir}" prefix="svn." />
                    </svn>
                    <property name="build.number" value="${svn.revision.max}" />
                    <echo message="-------------------------------------" />
                    <echo message=" version ${version.major}.${version.minor}.$
    {version.patch}.${build.number} at ${build.date} " />
                    <echo message="-------------------------------------" />

    Pierre

    On Dec 2, 2008, at 4:39, Mike Schrag wrote:

    > I'm not sure I wrote that part ... I think it's all done somewhere
    > in the Wonder build scripts?
    >
    > ok, so it looks like I pass in the version as a param to the ant
    > build script ... not sure what it does with it, but i set
    > project.version=$FULL_VERSION and full version is:
    >
    > export MAJOR_VERSION=5.0.0
    > NEW_VERSION=`/usr/local/bin/svn info $CHECKOUT_FOLDER | grep
    > Revision: | sed 's#.* ##'`
    > FULL_VERSION=$MAJOR_VERSION.$NEW_VERSION
    >
    > ms
    >
    > On Dec 2, 2008, at 4:51 AM, Alan Zebchuk wrote:
    >
    >> Hi Mike,
    >>
    >> I noticed you hadn't posted a response to this, but I was wondering
    >> if you could share how you get the revision numbers in the
    >> Info.plist files on the nightly build server? Is there anything
    >> magical happening there?
    >>
    >> Thanks,
    >>
    >> Alan
    >>
    >> Begin forwarded message:
    >>
    >>> From: Alan Zebchuk <Alan.Zebchu..uegodigitalmedia.com>
    >>> Date: November 30, 2008 7:33:16 AM GMT+03:00
    >>> To: woproject-de..bjectstyle.org
    >>> Subject: Adding a revision number to Info.plist
    >>> Reply-To: woproject-de..bjectstyle.org
    >>>
    >>> Does anyone know how to ad the latest svn revision number of a
    >>> project to the Info.plist file when building a framework or
    >>> application?
    >>>
    >>> I notice that it's being done on the nightly build site for Wonder
    >>> frameworks. Is there an easy way to do this?
    >>>
    >>> Thanks,
    >>>
    >>> Alan
    >>
    >
    >
    >





    This archive was generated by hypermail 2.0.0 : Tue Dec 02 2008 - 19:59:10 EST