freeswitch/checkversion.sh
Anthony Minessale 534db1947e Add more IVR stuff and a test app (mod_ivrtest)
in dialplan (ivrtest <path to file>)
if the file is valid it will play the file and you will be expected to dial digits
until you dial 10 digits or press # or * (* will end the call) (# will repeat the test endlessly)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 21:33:45 +00:00

22 lines
467 B
Bash
Executable File

#!/bin/bash
if [ ! -z $1 ] ; then
if [ $1 = force ] ; then
rm -f .version
fi
fi
force=0
version=`svnversion . -n || echo hacked`
oldversion=`cat .version 2>/dev/null || echo "0"`
grep "@SVN_VERSION@" src/include/switch_version.h && force=1
if [ $oldversion != $version ] || [ $force = 1 ] ; then
cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/$version/g" > src/include/switch_version.h
echo $version > .version
make modclean
fi