Test script to verify that timezone cache is properly removed on zonefile alteration.
[asterisk/asterisk.git] / build_tools / make_version_c
1 #!/bin/sh
2 if test ! -f .flavor ; then
3     EXTRA=""
4 elif test ! -f .version ; then
5         aadkflavor=`cat .flavor`
6     EXTRA=" (${aadkflavor})"
7 else
8     aadkver=`cat .version`
9     aadkflavor=`cat .flavor`
10     EXTRA=" (${aadkflavor} ${aadkver})"
11 fi
12 cat << END
13 /*
14  * version.c
15  * Automatically generated
16  */
17
18 #include "asterisk.h"
19
20 #include "asterisk/ast_version.h"
21
22 static const char asterisk_version[] = "${ASTERISKVERSION}${EXTRA}";
23
24 static const char asterisk_version_num[] = "${ASTERISKVERSIONNUM}";
25
26 const char *ast_get_version(void)
27 {
28         return asterisk_version;
29 }
30
31 const char *ast_get_version_num(void)
32 {
33         return asterisk_version_num;
34 }
35
36 END