[scribus-dev] Is there a way to show the compiled build revision # for a dev build
a.l.e
ale.comp_06 at xox.ch
Mon Jun 2 13:08:48 UTC 2014
hi kunda,
>
>
> the patch generates a VERSION_SVN constant that shows the svn
> version at the time cmake has been run.
>
> but what you want, is the version at the time make is run...
> (if, like me and most people, you are only running cmake when make
> fails because of bigger stucture changes).
>
> my conclusion at that time: it might be possible to get the
> information into scribus, but the effort to get to it is imo way
> to high for the use of that information...
>
> ciao
> a.l.e
>
>
> Do we need to reinvent the wheel here? Are there other projects out
> there that do something like this that we can learn from ?
>
> Or an ugly hack for now that we at compile time say something like:
> echo "$sorcery_that_tells_us_revision#" > .svn_revision.txt
>
we don't need to reinvent the wheel at all :-)
i based all my tries on exhisting hints and answers on the internet.
and the general answer i found was: you cannot do it without going for
(very) dirty code.
still, i did some tries to discover and try out the limits...
all in all, if you provide a description for a working, clean and non
invasive solution, i'll be more than happy to produce working c++ code
for it!
ciao
a.l.e
p.s.: the line you wrote above, supposes that the sorcery knows where
the repository is and that you can run the svn client from the command
line... not impossible, you can probably set them at cmake time... but i
haven't heard any project doing that :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20140602/ba97bc84/attachment.html>
More information about the scribus-dev
mailing list