6d901c2fa8e335e67086c1166aa9f60e715ce633
[asterisk/asterisk.git] / build_tools / make_version_h
1 #!/bin/sh
2 if [ ! -f ../.flavor ]; then
3     EXTRA=""
4 else
5     aadkver=`cat ../.version`
6     aadkflavor=`cat ../.flavor`
7     EXTRA=" (${aadkflavor} ${aadkver})"
8 fi
9 cat << END
10 /*
11  * version.h 
12  * Automatically generated
13  */
14 #define ASTERISK_VERSION "${ASTERISKVERSION}${EXTRA}"
15 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
16
17 END