My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
usage  

Featured, Phase-Deploy
Updated Nov 19, 2009 by jeremie....@gmail.com

#Use of VersionManager CodeLite plugin

Introduction

Here is the use of the Version Manager plugin in CodeLite.

Details

Global settings

To manage global settings, go to menu Plugin -> Version Manager -> Settings...

Those settings are used by default when managing version of a new project.

Project settings

  • The Version file text entry is the name of the generated file.
  • The SVN checkbox is used to manage the "build" number according to the actual SVN revision.
  • The SVN command text entry allow you to define where is your SVN executable.
  • The Use external file to store version information allow you to store information in a .versionmanager file instead of the .project file.

File settings

Here you can find the default variables names used by VersionManager while generating the .h version file. You can also use a namespace if desired.

CodeLite project settings

I you want to manage your project versions, you just have to "right clic" on your project (in the Workspace view), and you will see a Version manager menu entry.

  • Settings : If your project is not actually managed by VersionManager, you will be asked if you want ta manage this project. Once it is managed, this menu allow you to fill project specific informations.
  • Deliver : Select this menu entry when you want to change a version. This allow you to increment a version number and change status.

Sample result

the file produced (vm_version.h for the example, as configured below), will contain the following source code :

#ifndef VERSIONMANAGER_VERSION_H_INCLUDED
#define VERSIONMANAGER_VERSION_H_INCLUDED

namespace version {

static const int   MAJOR = 1;
static const int   MINOR = 0;
static const int   RELEASE = 0;
static const int   BUILD = 0;
static const char* STATUS = "Release";

static const char* VERSION = "1.0.0.0 Release";

}; // namespace version

#endif // VERSIONMANAGER_VERSION_H_INCLUDED

Sign in to add a comment
Powered by Google Project Hosting