From 3c3a8ea6d6fa5502fed828eab4bc049ebb809650 Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Thu, 13 Mar 2008 13:04:34 +0000 Subject: [PATCH] Check better for trunk version of Asterisk. --- create_config.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/create_config.sh b/create_config.sh index 50d0021..45cce0a 100755 --- a/create_config.sh +++ b/create_config.sh @@ -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