Merged revisions 67526 via svnmerge from
[asterisk/asterisk.git] / build_tools / make_version_h
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}
10
11 END
12 else
13     aadkver=`cat ../.version`
14     aadkflavor=`cat ../.flavor`
15     cat << END
16 /*
17  * version.h 
18  * Automatically generated
19  */
20 #define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})"
21 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
22
23 END
24 fi
25