×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    How to manage multiple releases...

    This is the situation.
    I have an application which has two different "releases". One is calle "Free" and the other is called "Supporter".

    For Symbian, i used to add
    Code:
    EXTRA_NAME=Free
    or
    Code:
    EXTRA_NAME=Supporter
    in the .pro file and edit the target accordingly:

    Code:
    TARGET=MyApp$${EXTRA_NAME}
    With this simple trick, i can simply rebuild one or the other commenting one line in the pro file and rebulding.

    Now, with MeeGo and Maemo this does not work because the target name gets hardwired based on what is input in the projects/run dialog box and when i manually change that, many already generated files does not get updated.

    I went around the desktop file and the icon by creating two versions of them, but still i have to manually edit the changelog and control files to manually change the release name.... Which is annoying and always leads to errors/forgot...

    Is there a better way to do this?

    thanks.
    Last edited by gardiol; 2011-09-28 at 10:48.

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: How to manage multiple releases...

    The project file can run system commands [1], so it can apply/remove [2] your changes to the debian files everytime you run a make.
    If you don't want to run the "patch" command you could follow a less elegant way... which is swapping the debian dirs (debian-supporter <-> debian <-> debian-free)
    according to the target name.

    [1] system(command)
    [2] http://linux.die.net/man/1/patch

Similar Threads

  1. how do we handle multiple language releases
    By dazza66667 in forum [Closed] Publishing to Nokia Store
    Replies: 11
    Last Post: 2009-08-10, 16:49
  2. RScheduler and latest S60 releases
    By pmuilu in forum Symbian
    Replies: 0
    Last Post: 2008-09-08, 19:15
  3. How to manage multiple views.
    By michaelren in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-01-18, 10:15
  4. New SNAP Mobile SDK releases
    By splandorf in forum Mobile Java Games
    Replies: 0
    Last Post: 2006-06-24, 02:31
  5. when will the PRO version of carbide will be releases?
    By imzadi_il in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-05-05, 14:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×