1994 has it. :)...your make my day. :P
But at the rate we 're committing, this could move a millenium beyond or so. ;)...hehe. I hope this doesn't mean you stop committing. :shock: :lol:
I have to change around 40 project files in this way because the names of libraries have changed so this will certainly increase my productivity, really!Lol, you know I am normally strictly against doing such things. But changing the dependency names in 40(!) projects really justifies running a global search/replace on the project files using sed or a text editor or whatever... :lol:
You know, sed does that as a one-liner... :)Well, it's not so easy, because it's target dependend. I got debug-libs for the external dependencies so I want really only the debug-target-dependencies to be changed. A search & replace would also change all the other targets as well. Furthermore I trust C::B more than a search & replace tool. And I am addicted to GUIs. :lol:
You could probably write a TinyXML-based application which [...]Too late, I've finished by now. :?
#include <stdio.h>
#include "tinyxml/tinystr.h"
#include "tinyxml/tinyxml.h"
int main(int argc, char** argv)
{
TiXmlDocument doc(argv[0]);
TiXmlElement *build = doc.FirstChildElement( "CodeBlocks_project_file")->FirstChildElement( "Project")->FirstChildElement( "Build");
if(!build)
return -1;
TiXmlElement *target = 0;
while(target = (TiXmlElement*) build->IterateChildren("Target", target))
{
if(target->Attribute("title") && !strcmp(target->Attribute("title"), "debug"))
{
TiXmlElement *opts = 0;
while(opts = (TiXmlElement*) target->IterateChildren("Option", opts))
{
if(opts->Attribute("external_deps") && !strcmp(opts->Attribute("external_deps"), "oldLibraryName"))
opts->SetAttribute("external_deps", "newLibraryName");
}
}
}
doc.SaveFile();
return 0;
}
What a shame... something like this would probably have done it: [...]<comic_speech> Grmbl! </comic_speech>
Once, Thomas had this idea that revision 2000 (or was it 2006?) could be our RC3 release.Too late now, I just committed rev. 2000 :D
But at the rate we 're committing, this could move a millenium beyond or so. ;)