Now that the contexts lock is a read/write lock, it should not be locked here
[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