Check better for trunk version of Asterisk.
This commit is contained in:
parent
1ceaef4d15
commit
3c3a8ea6d6
|
@ -27,12 +27,11 @@ if [ ! -d "$INCLUDEDIR" ]; then
|
|||
fi
|
||||
|
||||
echo -n "Checking Asterisk version... "
|
||||
if grep -q "ast_get_version_num" $INCLUDEDIR/version.h; then
|
||||
AVERSION="not found, assuming 1.6.x"
|
||||
VER=1_6
|
||||
else
|
||||
AVERSION=`sed -n '/.*ASTERISK_VERSION /s/^.*ASTERISK_VERSION //p' $INCLUDEDIR/version.h`
|
||||
AVERSION=`echo $AVERSION | sed 's/\"//g'`
|
||||
if [ "$AVERSION" == "" ]; then
|
||||
AVERSION="trunk"
|
||||
VER="1_6"
|
||||
fi
|
||||
echo $AVERSION
|
||||
|
||||
|
|
Loading…
Reference in New Issue