Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
FreeBSD build
takeshimiya:
--- Quote from: thomas on November 14, 2006, 11:30:14 am ---
--- Quote from: afb on November 14, 2006, 10:59:46 am ---(ignoring for a moment that MinGW does have autotools)
--- End quote ---
MinGW does not have automake, you can use automake with MSYS though. However, we don't seriously consider building Code::Blocks with MSYS, do we :)
MinGW has no such thing as sed or any other non-compiler-non-linker tool coming with a standard installation. How do you implement parsing svn's output and writing out a header file with gcc, as, and ld being your only tools? Enter autorevision. That was the whole reason why it ever came into existence :)
--- Quote ---And autotools is good for generating e.g. codeblocks.spec and codeblocks.plist, unless you wanted to do those in C++ as well ?
--- End quote ---
Meknows nothing of specs and plists, but since these are RPM stuff, so Linux only, autotools is of course the right thing to use for that.
--- Quote ---On a side note, I think the wx-config.cpp addition will be great too.
--- End quote ---
Great for what? I don't understand what we should need it for (apart from the fact that I was told it does not work)?
--- End quote ---
Off-topic and despite I agree on your entire post, can you tell me who told you and when that "the fact that I was told it does not work"?
Thanks.
afb:
Here was the updated shell code: (to use XML as the first option)
--- Code: ---LANG=C
export LANG
if svn --xml info >/dev/null 2>&1; then
REV=`svn --xml info | tr -d '\r\n' | sed -e 's/.*<commit.*revision="\([0-9]*\)".*<\/commit>.*/\1/'`
LCD=`svn --xml info | tr -d '\r\n' | sed -e 's/.*<commit.*<date>\([0-9\-]*\)\T\([0-9\:]*\)\..*<\/date>.*<\/commit>.*/\1 \2/'`
elif svn --version --quiet >/dev/null 2>&1; then
REV=`svn info | grep "^Revision:" | cut -d" " -f2`
LCD=`svn info | grep "^Last Changed Date:" | cut -d" " -f4,5`
else
REV=0
LCD=""
fi
--- End code ---
Just for discussion reference, it will be posted elsewhere as well.
thomas:
--- Quote from: afb on November 14, 2006, 12:45:44 pm ---Here was the updated shell code: (to use XML as the first option)
--- End quote ---
Looks like it should work fine.
--- Quote ---can you tell me who told you and when
--- End quote ---
Who: Someone who I believe. :) I'm don't remember for sure who said it (there are 3 possible candidates, and I shan't point at someone without being 100% sure), but out of the three people who are in question, I'd believe anyone.
When: Don't know... a few weeks back? Maybe 2, maybe 3? Would have to search my messenger logs to know the date.
takeshimiya:
--- Quote from: thomas on November 14, 2006, 01:00:06 pm ---Who: Someone who I believe. :)
--- End quote ---
In any case I guess it's not
--- Quote from: tiwag on October 18, 2006, 05:54:12 pm ---i used your wx-config-win too and it works very well indeed.
there is only one big problem: codecompletion isn't working when
you setup your cb-project using wx-config, because the path to the
include files isn't know for CB during editing.
--- End quote ---
nor
--- Quote from: rjmyst3 on October 18, 2006, 08:19:51 pm ---I've also been using wx-config-win of late, and it works very well - nice work!
I was just thinking how nice it would be to have a wizard using it ... :D
--- End quote ---
at least.
--- Quote from: thomas on November 14, 2006, 01:00:06 pm ---I'm don't remember for sure who said it (there are 3 possible candidates, and I shan't point at someone without being 100% sure), but out of the three people who are in question, I'd believe anyone.
--- End quote ---
Me and tiwag have tested it not more than enough but fairly enough, so it would be nice whoever said it, can submit any issue found to the issue tracker, it will be much appreciated;
afb:
And here was src/sdk/autorevision.h.in:
--- Code: ---/*@REVISION@*/
#ifndef AUTOREVISION_H
#define AUTOREVISION_H
#include <wx/string.h>
#define SVN_REVISION "@REVISION@"
#define SVN_DATE "@DATE@"
namespace autorevision
{
const unsigned int svn_revision = @REVISION@;
const wxString svnRevision(_T("@REVISION@"));
}
#endif
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version