git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 lines
331 B
Bash
Executable file
18 lines
331 B
Bash
Executable file
#!/bin/sh
|
|
if [ ! -f ../.flavor ]; then
|
|
EXTRA=""
|
|
else
|
|
aadkver=`cat ../.version`
|
|
aadkflavor=`cat ../.flavor`
|
|
EXTRA=" (${aadkflavor} ${aadkver})"
|
|
fi
|
|
cat << END
|
|
/*
|
|
* version.h
|
|
* Automatically generated
|
|
*/
|
|
#define ASTERISK_VERSION "${ASTERISKVERSION}${EXTRA}"
|
|
#define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
|
|
|
|
END
|