Merge changes from team/russell/iax2_find_callno and iax2_find_callno_1.4
[asterisk-bristuff.git] / build_tools / make_version_h
blob0b651ad009fd74154451992fa98084671d08e866
1 #!/bin/sh
2 if [ ! -f ../.flavor ]; then
3 cat << END
4 /*
5 * version.h
6 * Automatically generated
7 */
8 #define ASTERISK_VERSION "${ASTERISKVERSION}"
9 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
11 END
12 else
13 aadkver=`cat ../.version`
14 aadkflavor=`cat ../.flavor`
15 cat << END
17 * version.h
18 * Automatically generated
20 #define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})"
21 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
23 END