diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-26 20:19:03 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-26 20:19:03 +0000 |
commit | 808bb845c57c0e697479b2f2c3097fca64df809a (patch) | |
tree | e566783302b426590b203a9900d716fe1aeb383e /build_tools | |
parent | d5b06adda96fb89bac61e94e86d8292984d24037 (diff) |
Re-add the automatically generated version.h, so that modules can include for
making build time decisions for cross asterisk version compatibility
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104245 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/make_version_h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/build_tools/make_version_h b/build_tools/make_version_h new file mode 100755 index 000000000..0b651ad00 --- /dev/null +++ b/build_tools/make_version_h @@ -0,0 +1,25 @@ +#!/bin/sh +if [ ! -f ../.flavor ]; then + cat << END +/* + * version.h + * Automatically generated + */ +#define ASTERISK_VERSION "${ASTERISKVERSION}" +#define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM} + +END +else + aadkver=`cat ../.version` + aadkflavor=`cat ../.flavor` + cat << END +/* + * version.h + * Automatically generated + */ +#define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})" +#define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM} + +END +fi + |