![russell](/assets/img/avatar_default.png)
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
26 lines
467 B
Bash
Executable file
26 lines
467 B
Bash
Executable file
#!/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
|
|
|