(issue #14737) Reported by: davidw Patches: flavor.patch uploaded by davidw (license 780) Tested by: davidw git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
26 lines
458 B
Bash
Executable file
26 lines
458 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
|
|
|