Hey,
currently i had some time to play around with inno again.
I think i will improve the plugin in the following days.
But more important is that i created two inno files for the codeblocks version i use.
Both of the inno files are attached here.
So to use my codeblocks with all the plugins i use currently just use one of the installer generated and uploaded to FileStore.to.
The first one is bundled installer containing a few other installer containing usefull tools for cpp programming.
The second one is codeblocks with plugins only.
That installer and inno are windows tools i guess this plugin won't made it into the contrib. plugins.
CodeBlocks with a few other installer:
http://filestore.to/?d=J0YYVRMJ8BCodeBlocks with a few Plugins:
http://filestore.to/?d=HBMJNASD5Xcurrently hosted on filestore.to does anyone knows a better place for them? And should i make installer for the nightly build for windows ? Are there some interested in that ?
To get the versions number correct out of the svn build i modified the autorevisions tool a little bit:
So here is my diff to the Windows cbp and autorevisionstool:
Index: CodeBlocks.cbp
===================================================================
--- CodeBlocks.cbp (Revision 10406)
+++ CodeBlocks.cbp (Arbeitskopie)
@@ -168,7 +168,8 @@
<Add directory="sdk/propgrid" />
</Linker>
<ExtraCommands>
- <Add before="build_tools\autorevision\autorevision +wx +int +t . include/autorevision.h" />
+ <Add before="build_tools\autorevision\autorevision +def +wx +int +t . include/autorevision.h" />
+ <Add before="build_tools\autorevision\autorevision +def . include/autorevision_setup.h" />
<Add after="cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks" />
<Add after="zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc" />
<Add after='cmd /c "cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png"' />
@@ -756,6 +757,9 @@
<Unit filename="build_tools/autorevision/autorevision.cpp">
<Option target="AutoRevision" />
</Unit>
+ <Unit filename="codeblocks.iss">
+ <Option target="sdk" />
+ </Unit>
<Unit filename="include/annoyingdialog.h">
<Option target="sdk" />
</Unit>
Index: build_tools/autorevision/autorevision.cpp
===================================================================
--- build_tools/autorevision/autorevision.cpp (Revision 10406)
+++ build_tools/autorevision/autorevision.cpp (Arbeitskopie)
@@ -43,6 +43,7 @@
bool do_int = false;
bool do_std = false;
bool do_wx = false;
+bool do_def = false;
bool do_translate = false;
bool be_verbose = false;
@@ -54,7 +55,9 @@
for(int i = 1; i < argc; ++i)
{
- if(strcmp("+int", argv[i]) == 0)
+ if( strcmp("+def", argv[i]) == 0)
+ do_def = true;
+ else if(strcmp("+int", argv[i]) == 0)
do_int = true;
else if(strcmp("+std", argv[i]) == 0)
do_std = true;
@@ -76,6 +79,7 @@
{
puts("Usage: autorevision [options] directory [autorevision.h]");
puts("Options:");
+ puts(" +def assign define");
puts(" +int assign const unsigned int");
puts(" +std assign const std::string");
puts(" +wx assing const wxString");
@@ -250,7 +254,6 @@
in.close();
}
-
FILE *header = fopen(outputFile.c_str(), "wb");
if(!header)
{
@@ -257,12 +260,17 @@
puts("Error: Could not open output file.");
return false;
}
-
- fprintf(header, "%s\n", comment.c_str());
- fprintf(header, "//don't include this header, only configmanager-revision.cpp should do this.\n");
+ if(!do_def)
+ {
+ fprintf(header, "%s\n", comment.c_str());
+ fprintf(header, "//don't include this header, only configmanager-revision.cpp should do this.\n");
+ }
fprintf(header, "#ifndef AUTOREVISION_H\n");
fprintf(header, "#define AUTOREVISION_H\n\n\n");
+ if(do_def)
+ fprintf(header, "#define SVN_REVISION %s\n", revision.c_str());
+
if(do_std)
fprintf(header, "#include <string>\n");
if(do_wx)