Now that the version.h file was getting properly regenerated every time the svn
authorRussell Bryant <russell@russellbryant.com>
Sat, 5 Jan 2008 22:09:06 +0000 (22:09 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 5 Jan 2008 22:09:06 +0000 (22:09 +0000)
commit54bc2c20b66d919f1df26faa637774ad40b343f1
tree243c62517db25a0b199483928c97afce6ce2a3d4
parent3e28c57081b1c9bf5a9c5fcacad51e7538d1a91e
Now that the version.h file was getting properly regenerated every time the svn
revision changed, every module that used the version was getting rebuilt after
every svn update.  This severly annoyed me pretty quickly, so I have improved
the situation.

Now, instead of generating version.h, main/version.c is generated.  version.c
includes the version information, as well as a couple of API calls for modules
to retrieve the version.  So now, only version.c will get rebuilt, and the main
asterisk binary relinked, which is must faster than rebuilding http.c, manager.c,
asterisk.c, relinking the asterisk binary, chan_sip.c, func_version.c, res_agi ...

The only minor change in behavior here is that the version information reported by
chan_sip, for example, is the version of the Asterisk core, and not necessarily the
Asterisk version that the chan_sip module came from.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile
build_tools/make_version_c [new file with mode: 0755]
build_tools/make_version_h [deleted file]
channels/chan_sip.c
funcs/func_version.c
include/asterisk/version.h [new file with mode: 0644]
main/Makefile
main/asterisk.c
main/http.c
main/manager.c
res/res_agi.c