./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
Error: could not open input file
./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
Error: could not open input file
Problem in that file! autoversion.h does not exist :(
Heh, interesting :)Although I disagree on the term "fix", I've changed it. Actually, the program was doing exactly what it should ;)
Thomas, will you fix this?
Heh, interesting :)Although I disagree on the term "fix", I've changed it. Actually, the program was doing exactly what it should ;)
Thomas, will you fix this?
autorevision will now silently continue in absence of revision information and output "0" as the revision number.
EDIT:
Hmmm... something else just comes to my mind:
How can you actually get an error about a missing file? autorevision used to exit with status -1 on error, so should the build not abort at that point, and you would never see the message about a missing file?
ifstream inFile(docFile.c_str());
if (!inFile)
{
puts("Error: could not open input file");
return -1;
}
EDIT: And maybe just quit if the output file already exists to not overwrite revision information already present?
QuoteEDIT: And maybe just quit if the output file already exists to not overwrite revision information already present?
That would be interesting, then 2 files don't have to recompile each time when you build some or your own modified sources (though you can see this also as a revision, but it won't make it to svn).
autorevision will now silently continue in absence of revision information and output "0" as the revision number.
Well yes, but it also aborted the build process.That was intended, even though it really did not.
EDIT: And maybe just quit if the output file already exists to not overwrite revision information already present?In that case, your revision will never change, no matter to what revision you update. This defeats the purpose of autorevision, you could just as well hardcode a revision number into your sources then. The purpose of this tool is to update the revision number that is visible in the application every time the revision of the source files has changed, without any interaction from the user.
How do you mean the build shoundn't abort?It should. That's my point. As you can see from the source which you posted yourself, the exit code was -1. Therefore, the error "missing file autorevision.h" should be entirely impossible because the build process should immediately break after autorevision exits.
...then 2 files don't have to recompile each time when you build some or your own modified sources (though you can see this also as a revision, but it won't make it to svn).This is not the case anyway. The tool itself is never compiled, except if you run "rebuild all" (and it only takes one second to compile, anyway).
Hmmm.. C::B build successfully but revision 0 (see http://img461.imageshack.us/my.php?image=codeblocks5cr.png) not right IMHO.It is perfectly right. You compile from sources which are not under revision control, so the revision number is zero. There is no way for the tool to determine the revision of these sources.
If you really want to build after exporting, be sure to run that command before exporting and remove it from the makefile so it doesn't give that error.
QuoteEDIT: And maybe just quit if the output file already exists to not overwrite revision information already present?In that case, your revision will never change, no matter to what revision you update. This defeats the purpose of autorevision, you could just as well hardcode a revision number into your sources then. The purpose of this tool is to update the revision number that is visible in the application every time the revision of the source files has changed, without any interaction from the user.
QuoteHow do you mean the build shoundn't abort?It should. That's my point. As you can see from the source which you posted yourself, the exit code was -1. Therefore, the error "missing file autorevision.h" should be entirely impossible because the build process should immediately break after autorevision exits.
./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.hIt couldn't open the input file, it didn't mention autorevision.h. The input file is .svn/entries IIRC, which would indeed not be present after an export.
Error: could not open input file