Informational message, not an error.
[asterisk/asterisk.git] / build_tools / make_version_h
1 #!/bin/sh
2 if test ! -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 elif test ! -f .version ; then
13     aadkflavor=`cat .flavor`
14     cat << END
15 /*
16  * version.h 
17  * Automatically generated
18  */
19 #define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor})"
20 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
21
22 END
23 else
24     aadkver=`cat .version`
25     aadkflavor=`cat .flavor`
26     cat << END
27 /*
28  * version.h 
29  * Automatically generated
30  */
31 #define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})"
32 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
33
34 END
35 fi
36