News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

AutoVersioning Plugin

Started by JGM, June 27, 2007, 08:18:25 PM

Previous topic - Next topic

JGM

AutoVersioning 1.3


Here I'm posting the new changes I made to the autoversioning plugin to fix the problems reported by users, here is the changes.

* Fixed ubuntu_style_version declaration now it is char string instead of double.
* Added new tab of autoversioning editor named "Code"
* New support to declare header guard define.
* New support to declare namespace name.
* New support to add a prefix to all variables helping in c mode like for example the DATE declaration found in other header files the same name.

For a better picture of it check the attached screenshot.

And here is an example output code with AV as prefix:


#ifndef VERSION_H
#define VERSION_H

namespace AutoVersion{

//Date Version Types
static const char AV_DATE[] = "09";
static const char AV_MONTH[] = "10";
static const char AV_YEAR[] = "2009";
static const char AV_UBUNTU_VERSION_STYLE[] = "9.10";

//Software Status
static const char AV_STATUS[] = "Alpha";
static const char AV_STATUS_SHORT[] = "a";

//Standard Version Type
static const long AV_MAJOR = 1;
static const long AV_MINOR = 0;
static const long AV_BUILD = 2;
static const long AV_REVISION = 11;

//Miscellaneous Version Types
static const long AV_BUILDS_COUNT = 1;
#define AV_RC_FILEVERSION 1,0,2,11
#define AV_RC_FILEVERSION_STRING "1, 0, 2, 11\0"
static const char AV_FULLVERSION_STRING[] = "1.0.2.11";

//These values are to keep track of your versioning state, don't modify them.
static const long AV_BUILD_HISTORY = 2;


}
#endif //VERSION_H


I also attached the patch and im going to upload it to berlios if i remember my account information xD

[attachment deleted by admin]

MortenMacFly

Quote from: JGM on October 09, 2009, 11:22:53 AM
AutoVersioning 1.3
Applied in trunk after testing... Thanks! :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MaxLondon

Does that mean it will be part of the next CB NightlyBlds "Release" ?

oBFusCATed

Yes, the next nightly will include all fixes that have been commited to svn before the date the nightly is made :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Freem

Quote from: ajaywazir on September 03, 2009, 06:19:21 PM
Hi
Need some help
I have SVN 1.5.5 and TortoiseSVN 1.6.5
I have checked out some code using TortoiseSVN 1.6.5;
SVN.exe is in path
I cannot use svn revision in the version file.
The config dialog always gives me error, svn configuration files not found.
whereas all .svn files and folders are there.

Ajay

Hi

I'm sorry to have to ask for help with this useful plug-in, but I have the same problem.
I searched in the C::B documentation, search on google, but I didn't find any information.
I think I really don't understand what I have to put in the field "current SVN directory".
I have tried to use the bin directory of subversion, the global directory of subversion, the directory of the project for which I want to try this feature, and the .svn directory in the project's directory, but this is all the time the same error... "Svn configuration files not found. Verify the Autoversioning svn directory."


stahta01

#185
Quote from: Freem on October 28, 2009, 08:10:05 PM
Quote from: ajaywazir on September 03, 2009, 06:19:21 PM
Hi
Need some help
I have SVN 1.5.5 and TortoiseSVN 1.6.5
I have checked out some code using TortoiseSVN 1.6.5;
SVN.exe is in path
I cannot use svn revision in the version file.
The config dialog always gives me error, svn configuration files not found.
whereas all .svn files and folders are there.

Ajay

Hi

I'm sorry to have to ask for help with this useful plug-in, but I have the same problem.
I searched in the C::B documentation, search on google, but I didn't find any information.
I think I really don't understand what I have to put in the field "current SVN directory".
I have tried to use the bin directory of subversion, the global directory of subversion, the directory of the project for which I want to try this feature, and the .svn directory in the project's directory, but this is all the time the same error... "Svn configuration files not found. Verify the Autoversioning svn directory."



This is just a guess.

svn command must be in the system path or in the compiler additional exe path

The "current SVN directory" should be the top SVN directory your SVN project is checked out to. This folder/directory must contain the .svn folder.

Note: This is a problem "I have SVN 1.5.5 and TortoiseSVN 1.6.5" the svn command must be the same major/minor version as the svn project folder. Note, a higher version might work. An SVN 1.6.0 should work with TortoiseSVN 1.6.5; but not SVN 1.5.5. Format of version number major.minor.?? What the ?? is called varies from project to project.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Freem

Thanks a lot, it work great, now.

I'm didn't think to upload brain to the last version, it seem :)

And thanks for this useful plugin, that improve a great IDE.

JGM

Quote from: MortenMacFly on October 27, 2009, 03:49:34 PM
Quote from: JGM on October 09, 2009, 11:22:53 AM
AutoVersioning 1.3
Applied in trunk after testing... Thanks! :-)

yay! thanks for the commit and thanks to everyone that pointed the plugin errors (bugs)!  :D Keep the codeblocks growing!

polygon7

#188
Hi,
I have one suggestion, this variables:

//Standard Version Type
static const long AV_MAJOR = 1;
static const long AV_MINOR = 0;
static const long AV_BUILD = 2;
static const long AV_REVISION = 11;


could be size_t / unsigned int type because usually you don't need negative version number,
and usually you don't need version number grater than max value of unsigned int (I know it doesn't
matter on 32bit, where unsigned long == unsigned int == 4 294 967 295, but on other architectures,
ex. 16bit, it makes a difference).
best regards,
p7
Free open source UML modeling tool: ArgoUML

AndyJ

Hello,

I have a request. Where strings are currently generated as:

   static const char DATE[] = "24";

would it be possible to (optionally?) generate them as:

   #define DATE_DEFINE "24"
   static const char DATE[] = DATE_DEFINE;

or something similar as this would be more flexible for some applications (creating a custom string in yet another #define for instance). Obviously the appropriate prefix should be applied to both names.

Thanks for a great plugin,

Andy



Cryogen


Hi Guys,

I added a new feature to the AutoVersion plug-in and posted a patch on 3/3. It adds the ability to update manifest.xml with AutoVersion's version string. I found it very tedious to have to update it manually and too easy to forget.  :D

You can control whether or not to let AutoVersion update manifest.xml via a new option in the Settings tab of the prefs dialogue.


I've found this REALLY useful since I started using it. I hope you do, too.

Cheers,

Cryo.

DoxyBlocks: Now in contrib. Cool, baby.
DoxyDocs: [url="http://wxsmithaddons.sourceforge.net/docs/doxyblocks/"]http://wxsmithaddons.sourceforge.net/docs/doxyblocks/[/url]
wxSmith Add-ons: [url="http://wxsmithaddons.sourceforge.net/"]http://wxsmithaddons.sourceforge.net/[/url]
Cryo's Patchorama: [url="http://forums.next.codeblocks.org/index.php/topic,12619.0.html"]http://forums.next.codeblocks.org/index.php/topic,12619.0.html[/url]

Cryogen


Hi again,

I should probably also add that on 2/2 I also submitted a patch that enlarges the change log dialogue and sizes the rows to the content. I found it very annoying to have to resize it every single time, which is often if you're using it regularly. It's patch 2922:

https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2922&group_id=5358

This one also corrects the SVN error message and includes some spelling corrections.

I've just realised that you don't seem to be able to download patches from Berlios, so they're attached.

Cheers,

  Cryo.


[attachment deleted by admin]
DoxyBlocks: Now in contrib. Cool, baby.
DoxyDocs: [url="http://wxsmithaddons.sourceforge.net/docs/doxyblocks/"]http://wxsmithaddons.sourceforge.net/docs/doxyblocks/[/url]
wxSmith Add-ons: [url="http://wxsmithaddons.sourceforge.net/"]http://wxsmithaddons.sourceforge.net/[/url]
Cryo's Patchorama: [url="http://forums.next.codeblocks.org/index.php/topic,12619.0.html"]http://forums.next.codeblocks.org/index.php/topic,12619.0.html[/url]

Cryogen


I noticed that I'd missed the tooltip description. I've now corrected that. An updated patch is attached and also at Berlios.

Cryo.

[attachment deleted by admin]
DoxyBlocks: Now in contrib. Cool, baby.
DoxyDocs: [url="http://wxsmithaddons.sourceforge.net/docs/doxyblocks/"]http://wxsmithaddons.sourceforge.net/docs/doxyblocks/[/url]
wxSmith Add-ons: [url="http://wxsmithaddons.sourceforge.net/"]http://wxsmithaddons.sourceforge.net/[/url]
Cryo's Patchorama: [url="http://forums.next.codeblocks.org/index.php/topic,12619.0.html"]http://forums.next.codeblocks.org/index.php/topic,12619.0.html[/url]

JGM


Cryogen


It seems that I missed operator!= as well. :-(

That's now fixed, too.

[attachment deleted by admin]
DoxyBlocks: Now in contrib. Cool, baby.
DoxyDocs: [url="http://wxsmithaddons.sourceforge.net/docs/doxyblocks/"]http://wxsmithaddons.sourceforge.net/docs/doxyblocks/[/url]
wxSmith Add-ons: [url="http://wxsmithaddons.sourceforge.net/"]http://wxsmithaddons.sourceforge.net/[/url]
Cryo's Patchorama: [url="http://forums.next.codeblocks.org/index.php/topic,12619.0.html"]http://forums.next.codeblocks.org/index.php/topic,12619.0.html[/url]