Retrieve asterisk version from headers.

This commit is contained in:
MelwareDE 2006-07-09 13:24:56 +00:00
parent 06135eb7dc
commit e536535139
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ if [ ! -d "$INCLUDEDIR" ]; then
exit 1
fi
echo "Checking Asterisk version..."
echo -n "Checking Asterisk version... "
AVERSION=`sed -n '/.*ASTERISK_VERSION /s/^.*ASTERISK_VERSION //p' $INCLUDEDIR/version.h`
AVERSION=`echo $AVERSION | sed 's/\"//g'`
echo $AVERSION
echo "/*" >$CONFIGFILE
echo " * automatically generated by $0 `date`" >>$CONFIGFILE