<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">
<blockquote style="border: 0px none;"
cite="mid:53221D06.30602@rybarik.sk" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="michal@rybarik.sk" photoname="Michal Rybárik"
src="cid:part1.01080703.01040607@digium.com"
name="compose-unknown-contact.jpg" height="25px" width="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:michal@rybarik.sk"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Michal Rybárik</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">Thursday, March
13, 2014 4:03 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">Hello,
<br>
<br>how and when is main/version.c generated ? I checked out branch-11
svn,
compiled, packaged for debian, and now I realized that "core show
version" is diffent than version that I got from SVN.
<br>
<br>main/version.c
<br>static const char asterisk_version[] = "SVN-branch-11-r410490M";
<br>
<br>ipfon-test*CLI> core show version
<br>Asterisk SVN-branch-11-r410490M built by root @ fero on a i686
running
Linux on 2014-03-13 20:44:31 UTC
<br>
<br>SVN checkout:
<br>Checked out revision 410540.
<br>
<br>How this works?
<br>
<br>Thanks,
<br>Michal Rybarik
<br>
<br><hr style="border: none 0; border-top: 1px dotted #B5B5B5; height:
1px;margin:15px 0 0 0" class="__pbConvHr"> </div>
</blockquote>
The version number is determined by the build_tools/make_version script.
It uses an svn property (by default svnmerge-integrated) in order to
determine the version.<br>
<br>
The reason this is different from what "svn info" shows is that the
Asterisk repository has commits being made to many different branches.
It is possible (and likely) that the branch you are currently using was
last updated by a commit made many revisions ago. The version you see
from "core show version" in Asterisk should show you the latest revision
made in the branch you currently are using. "svn info" just shows the
latest revision committed to the Asterisk repository, no matter the
branch you currently have checked out.<br>
</body></html>